Jump to content

Remove padding around code block

Recommended Posts

Site URL: https://processworkuk.squarespace.com/

Hi there,

I've added in code blocks for page jumps on a lengthy blog post, but they appear really large on the live site. Is there a way to reduce the padding around the code block? On the Squarespace editor they don't appear as large as on the live site...

Blog page - https://processworkuk.squarespace.com/blog/the-world-in-here-and-out-there-processwork-facilitation-as-therapy-and-as-worldwork

Password - ProcessworkUK2022

Thanks,

Alex

Live website view.png

Squarespace editor view.png

Link to comment
  • Replies 4
  • Views 474
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 8/22/2022 at 2:04 AM, AlexSaunders said:

I've tried the following code in Design> Custom CSS which appears to work on the Squarespace editor but not on the live site;

 


div.code-block {
    padding-top: 0px !important;
}

div.code-block {
    padding-bottom: 0px !important;
}

Try this CSS

div.code-block.sqs-block {
    padding-top: 0px !important;
    padding-bottom: 0px !important;
}

 

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

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.