Jump to content

Adjust the size of a spacer block

Recommended Posts

Posted

I'm stumped on this. I want to use the spacer blocks that are included on the website, but I have no idea how to get custom CSS to affect it. Here is the Element I am trying to affect


<div class="sqs-block spacer-block sqs-block-spacer" data-aspect-ratio="2.08955223880597" data-block-type="21" id="block-yui_3_10_1_1_1398457714933_10509"><div class="sqs-block-content sqs-intrinsic" id="yui_3_10_1_1_1398459846313_416" style="padding-bottom: 2.08955223880597%;"> </div></div>

I need to override the padding that is set by "sqs-block" in "site.css". I want it to just affect the spacer elements on my site and not every block if possible.

Does this even make sense??

  • 3 months later...
  • Replies 6
  • Views 17.8k
  • Created
  • Last Reply
  • 5 weeks later...
Posted

You can adjust the top and bottom padding (not margin) on .spacer-block or .sqs-block-spacer respectively.

So for example, to reduce their height, add this to the Custom CSS:

.spacer-block { padding: 0 }

  • 1 year later...
  • 3 months later...
Posted

@szs - thanks for this code, but I don't see any difference in size of the spacers. Is there something that needs to be changed with the vsize-1 which appears to be the default setting?

  • 1 month later...

Archived

This topic is now archived and is closed to further replies.

Guest
This topic is now 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.