Home Forums Arnold WordPress Theme H4 Heading style keeps changing size – how do I make it a fixed size?

  • This topic has 2 replies, 2 voices, and was last updated 8 years ago by john.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #15180
    john
    Participant
    Purchased
    Expired

    Hi there,

    I’ve added CSS for H4 styles, because I’m using a custom font (with Typekit). However, the font-size changes many times when I resize the browser window, including to awkwardly small sizes for a heading.

    Can you help my CSS to work (22px on large screens, 19px on screens under 760px) ?

    Example page here, see the heading “Making switching a no-brainer”:
    http://johnalderson.me/justswitch/

    This is the code I added:

    h4 { font-family: acumin-pro-wide!important; line-height: 1.4; letter-spacing: -0.1px; font-size: 22px; font-weight: 700; padding-bottom: 0px !important; padding-top: 0px !important; }

    /*H4 on small screens*/
    @media(max-width:760px){h4 { font-family: acumin-pro-wide!important; line-height: 1.4; letter-spacing: -0.1px; font-weight: 700; font-size: 19px; padding-bottom: 0px !important; padding-top: 0px !important; } }

    Thanks in adv!

    #15189
    SeaTheme
    Keymaster
    Purchased
    Expired

    HI,

    Please add .entry before h4, like

    
    .entry h4 { font-family: acumin-pro-wide!important; line-height: 1.4; letter-spacing: -0.1px; font-size: 22px; font-weight: 700; padding-bottom: 0px !important; padding-top: 0px !important; }
    
    /*H4 on small screens*/
    @media(max-width:760px){ .entry h4 { font-family: acumin-pro-wide!important; line-height: 1.4; letter-spacing: -0.1px; font-weight: 700; font-size: 19px; padding-bottom: 0px !important; padding-top: 0px !important; } }

    Regards!

    #15192
    john
    Participant
    Purchased
    Expired

    Thanks, trying now!

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