Jump to content

Image padding (SVG in code block)

Recommended Posts

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 (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

My testing

image.thumb.png.4c4eac27b2ac2d72476ad6ac1288e65f.png

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. 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.