• GoDaddy Community
  • Websites + Marketing | Website Builders
  • Websites + Marketing | Website Builders

    cancel
    Showing results for 
    Show  only  | Search instead for 
    Did you mean: 
    Go to solution
    New

    Body Text is not inheriting the CSS font style of Template.

    Any ideas? Does everything need to specified in a span?

    1 ACCEPTED SOLUTION
    Super User III

    With the website builder HTML sections are basically their own "isolation chamber" so the code does not interact with the rest of the site.  You can place style tags directly into the HTML section and it would affect that section.

     

    <style>
    h2 { font: bold 18px Georgia, serif; }
    p { font: 14px Georgia, serif; }
    </style>
    
    <h2>Maecenas malesuada.</h2>
    
    <p>Donec quis hendrerit felis, non placerat lorem. Phasellus varius neque in nisl tincidunt bibendum. Curabitur interdum pretium ex id porta. In vulputate, nunc quis scelerisque cursus, orci eros pellentesque tortor, non posuere est ex sit amet erat. Vivamus nec aliquam enim. Proin gravida vestibulum eros ut mattis. Curabitur vel fringilla mauris, vitae auctor ante. Curabitur quam enim, luctus sed lectus a, varius ullamcorper neque. Curabitur iaculis facilisis nulla a molestie. Nullam sagittis ac lacus sed placerat. Duis pulvinar sem sed metus tempus, vitae tincidunt orci convallis. Phasellus nibh tortor, tempus a suscipit vel, bibendum non nulla. Donec nec sem at velit sodales ornare. Curabitur quis leo velit. Ut vitae quam ultricies, mollis libero nec, mollis mi. </p>

    View solution in original post

    1 REPLY 1
    Super User III

    With the website builder HTML sections are basically their own "isolation chamber" so the code does not interact with the rest of the site.  You can place style tags directly into the HTML section and it would affect that section.

     

    <style>
    h2 { font: bold 18px Georgia, serif; }
    p { font: 14px Georgia, serif; }
    </style>
    
    <h2>Maecenas malesuada.</h2>
    
    <p>Donec quis hendrerit felis, non placerat lorem. Phasellus varius neque in nisl tincidunt bibendum. Curabitur interdum pretium ex id porta. In vulputate, nunc quis scelerisque cursus, orci eros pellentesque tortor, non posuere est ex sit amet erat. Vivamus nec aliquam enim. Proin gravida vestibulum eros ut mattis. Curabitur vel fringilla mauris, vitae auctor ante. Curabitur quam enim, luctus sed lectus a, varius ullamcorper neque. Curabitur iaculis facilisis nulla a molestie. Nullam sagittis ac lacus sed placerat. Duis pulvinar sem sed metus tempus, vitae tincidunt orci convallis. Phasellus nibh tortor, tempus a suscipit vel, bibendum non nulla. Donec nec sem at velit sodales ornare. Curabitur quis leo velit. Ut vitae quam ultricies, mollis libero nec, mollis mi. </p>

    View solution in original post