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

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.