Hello Summer Sale!
Exclusive season-opening discount on TheGem theme.
Limited time offer.

Okay
  Public Ticket #1481820
H2 tag too small on mobile
Closed

Comments

  • biernat_a started the conversation

    Hi,

    Is there any way to change font size of H2 tag on mobile? On mobile it becomes much smaller than the body text.

    Thanks in advance!

    Adam Biernat

  •  7,280
    Oliver replied

    HI!

    here is an example of CSS for controlling font size for mobile:

    @media (max-width: 1000px) {
    h1, .title-h1 {        
        line-height: 30px !important;        
        font-size: 30px !important;
    }
    h2, .title-h2 {        
        line-height: 30px !important;        
        font-size: 30px !important;
        }
    }
    @media (max-width: 768px) {
    h1, .title-h1 {        
        line-height: 30px !important;        
        font-size: 30px !important;
    }
    h2, .title-h2 {        
        line-height: 30px !important;        
        font-size: 30px !important;
        }
    }
    @media (max-width: 500px) {
    h1, .title-h1 {        
        line-height: 30px !important;        
        font-size: 30px !important;
    }
    h2, .title-h2 {        
        line-height: 30px !important;        
        font-size: 30px !important;
        }
    }

     

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver

  • biernat_a replied

    Thank you Gregor!

  •  7,280
    Oliver replied

    Welcome!

    Please note if you comment on your ticket before we reply, your ticket will be pushed down of the tickets list. 

    Regards, Oliver