Jump to content

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

Go to solution Solved by tuanphan,

Recommended Posts

Add to Design > Custom CSS

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

 

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
4 hours ago, scholarsayze said:

Is it possible to also add a code to change the case of all my para and h2 text on mobile only to upper case?

add 

text-transform: uppercase; in h2 code above

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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • Solution
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

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

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.