Jump to content

Padding issues on line block on mobile view

Recommended Posts


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:


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.


Link to comment
  • Replies 3
  • Views 648
  • 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


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.