Jump to content

Image padding (SVG in code block)

Recommended Posts

Posted
1 hour ago, Beagood said:

Site URL: http://www.toolshed.london

Hi

I've added SVG icons to my site using code blocks. Is there a way of reducing the container depth/padding? I'd like to reduce the space between the icon and the title (see attached)

 

Thanks

Screenshot 2022-01-19 at 12.04.20.png

Try adding to Home > Design > Custom Css

section[data-section-id="60ddc0d2c60d755b986619dc"]  .code-block {
  padding-bottom: 0;
}
section[data-section-id="60ddc0d2c60d755b986619dc"] .html-block {
  padding-top:0;
}

Let me know how it works on your site

Support me by pressing 👍 if this useful for you

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Pinch/Zoom images, videos - PDFs Lightbox - ...) </>  🗓️ Delivery Date Picker (Date picker form field)
Gallery block 7.1 workaround </> 🤖 Ask me anything

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.