Jump to content

Reduce padding when using different fonts in image caption

Go to solution Solved by Beyondspace,

Recommended Posts

  • Solution
10 hours ago, juliaprather said:

Site URL: https://www.lisawolffmcintyre.com/blog/tampa-bays-25-highest-dollar-home-sales-in-2021

I'm looking for code to reduce padding between lines when using different fonts in a caption. In the reference pic, the first font is H2 and the second is P3. I don't want there to be quite so much space between the two fonts. THANK YOU, SQUARESPACERS!

2022-01-14_21-44-50.jpg

Is it the result you want to achieve?

image.thumb.png.4062ea4e8b8aa96964622bc1e4f9097b.png

Try adding to Home > Design > Custom Css

section[data-section-id="61bad254893e9936683062e6"] {
	.image-caption-wrapper {
		h1 {
			margin-bottom: 0px;
		}
		p {
			margin-top: 0px;
		}
	}
}

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

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.