Jump to content

Adjusting Blog Post Only H1, H2, H3, H4,H5 font sizes without effecting desktop sizes

Recommended Posts

Hey!! 🙂 I am using 7.1 I have an issue with Blog post font size on mobile. The H1 is massive. I found this below,

.blog-item-title h1.entry-title {font-size:31px !important}

/* CSS FOR MOBILE */

@media only screen and (max-width: 640px)

which changes the H1 on mobile but also desktop which I do not want.

Also, the H1 is now smaller than H2 which looks weird. How can I adjust H1, H2, H3, H4,H5 font sizes on mobile without effecting desktop sizes. 

 

Thanks John aka Ricey

Link to comment
  • Replies 5
  • Views 1.3k
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Use this code

@media screen and (max-width:767px) {
	h1 {font-size: 30px !important;}
	h2 {font-size: 20px !important;}
	h3 {font-size: 10px !important;}
	h4 {font-size: 50px !important;}
	h5 {font-size: 60px !important;}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

I just noticed that the mobile code has effected the regular pages but I only need the adjustment code for the Blog pages

Is there a code that specifies blog only ?? Plus not effecting the desktop blog as well 

@media screen and (max-width:767px) {
    h1 {font-size: 28px !important;}
    h2 {font-size: 20px !important;}
    h3 {font-size: 15px !important;}
    h4 {font-size: 10px !important;}
    h5 {font-size: 8px !important;}

Link to comment

With desktop, use this

@media screen and (min-width: 768px) {
	h1 {font-size: 30px !important;}
	h2 {font-size: 20px !important;}
	h3 {font-size: 10px !important;}
	h4 {font-size: 50px !important;}
	h5 {font-size: 60px !important;}
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.