Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1060684

    Hi,
    I’d like to increase the text block font weight for tablets and phones. For desktop, I have the following for the desktop text block styling in the custom css:

    div.avia_textblock p {
    font-weight: 300 !important;
    }

    and added this for the tablet and smart phone css:

    @media only screen and (max-width: 767px) {
    div.avia_textblock p {
    font-weight: 400 !important;
    }
    }

    However, the font weight is not changing in the tablet and smart phone view. Could you please advise \as to how to change the font-weight?

    Thanks for your help!

    #1061567

    Hey designyvr,

    Are you sure the font supports 400, what happens if you change it to 600? What happens if you remove !important from your CSS?

    Best regards,
    Rikard

    #1061696

    Hi Rikard, Thanks for your suggestions. I tried them, but the weight change is still not showing for the mobile view. Could you please take a look and advise? Thank you.

    In the header:

    <link href=”https://fonts.googleapis.com/css?family=Montserrat:300,600&#8243; rel=”stylesheet”>

    In the Custom CSS:

    @media only screen and (max-width: 767px) {
    div.avia_textblock p {
    font-weight: 600;
    }
    }

    div.avia_textblock p {
    font-weight: 300;
    }

    #1062148

    Hi,

    I put your CSS in the correct order and it’s working now.

    div.avia_textblock p {
    font-weight: 300;
    }
    
    @media only screen and (max-width: 767px) {
    div.avia_textblock p {
    font-weight: 600;
    }
    }

    Best regards,
    Rikard

    #1062392

    Perfect, thank you so much for your help Rikard!!

    #1062622

    Hi,

    Great, I’m glad we could help. Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

    #1062789

    Please close the topic. Thanks again Rikard!

    #1062798

    Hi designyvr,

    Glad that we could help :)
    Thanks for using Enfold and have a great day!

    Best regards,
    Nikko

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Media Queries’ is closed to new replies.