Jump to content

How can I increase my Header and Paragraph sizes on Mobile Only?

Recommended Posts

  • Replies 11
  • Created
  • Last Reply
22 hours ago, scholarsayze said:

Thank you,

Have I done this right, please check...

@media screen and (max-width:767px) {
h2 {
font-size: 1.4375rem !important;
text-transform: uppercase; 
}
p {
    font-size: 1.1875rem !important;
text-transform: uppercase; 
}
}

 

It does not seem to change? Please help!

try text-transform: uppercase !important;

above code work on mobile only

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
On 2/9/2021 at 11:27 PM, scholarsayze said:

Hi, I just noticed that the above code affects all my paragraph sizes. Is it possible to have this code just change P1 size on mobile? Just like the code only affects my H2 text.

I'd like to keep P2 the same as on desktop.

Thank you!

replace

p

with

p.sqsrte-large

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.