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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, 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

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, 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.