Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #720974

    Hi Guys,

    Is there a css code that I can use to use a certain font weight and line height of element like h2 h3 etc.

    Thanks

    #721075

    Hey robertscott,

    Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child themes style.css file:

    h2, h3 {
       font-weight:100!important;
    }

    If the above don’t work for you please share a precise link to your site.

    Best regards,
    Vinay

    #721113

    Hi Vinay,
    Thanks that worked perfect.

    What about the line height?

    ive added this:

    h2 {
    font-weight: 300; line-height: 29px;
    }

    would that work?

    #721127

    Also, how would I make the main body text for the site to use weight 300 all through the site?

    #721812

    Hey!

    Yes, the code should work. What is the font that you’re using? Some fonts do not support certain font weights so we have to know first. Regardless, you can try the following css code.

    body, body p {
        font-weight: 300;
    }

    Regards,
    Ismael

Viewing 5 posts - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.