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

Link to comment
  • Replies 3
  • Views 641
  • Created
  • Last Reply
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

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.