Jump to content

Padding issues on line block on mobile view

Recommended Posts

Hello,

I reduced the padding of the line block using the following code: .

sqs-block-horizontalrule {margin-top:-50px !important; margin-bottom:-50px !important;} 

To achieve the following look:

image.thumb.png.e77f202974c2b26a22a423adbfb629a5.png

However, when I checked the mobile view, this is what it ends up looking like. Does anyone know a way to fix how it looks on the mobile view?? Thank you.

image.png.d5bb2040cdb0617cbb12020eda33e5d2.png

Edited by MMCwebsitebuilder
Link to comment
  • Replies 3
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Edit your code to

@media screen and (min-width:641px) {
sqs-block-horizontalrule {margin-top:-25px !important; margin-bottom:-25px !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
59 minutes ago, tuanphan said:

Edit your code to


@media screen and (min-width:641px) {
sqs-block-horizontalrule {margin-top:-25px !important; margin-bottom:-25px !important;} 
}

 

Never mind!! It work!! Thank you so much! The code was just missing a "." So the code I used is:

 

@media screen and (min-width:641px) {
.sqs-block-horizontalrule {margin-top:-50px !important; margin-bottom:-50px !important;} 
}

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.