Jump to content

Adjust padding on text block for mobile only

Go to solution Solved by tuanphan,

Recommended Posts

  • Replies 4
  • Views 920
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

Edit this code


section[data-section-id="62bf411d5f0d75795dcecb37"] .content-wrapper {
    padding: 0 !important;
    max-width: 100vw
}

to this

@media screen and (min-width:992px) {
section[data-section-id="62bf411d5f0d75795dcecb37"] .content-wrapper {
    padding: 0 !important;
    max-width: 100vw
}
}

 

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 7/2/2022 at 9:07 PM, tuanphan said:

Edit this code


section[data-section-id="62bf411d5f0d75795dcecb37"] .content-wrapper {
    padding: 0 !important;
    max-width: 100vw
}

to this

@media screen and (min-width:992px) {
section[data-section-id="62bf411d5f0d75795dcecb37"] .content-wrapper {
    padding: 0 !important;
    max-width: 100vw
}
}

 

Thanks but I still want to keep the image and scrolling block full width. Any way to adjust that text box and button independently?

1646231861_ScreenShot2022-07-04at10_36_34AM.thumb.png.f2bcef76c507dd4cf57218cf3981881e.png

Link to comment
16 hours ago, tuanphan said:

Add to Design > Custom CSS

@media screen and (max-width:767px) {
div#page-section-62bf411d5f0d75795dcecb37 .span-6:last-child {
    padding-left: 6vw;
    padding-right: 6vw;
}
}

 

Perfect, 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.