Jump to content

CSS Borders Applying to some elements only (Summary Block)

Recommended Posts

https://emu-frog-srar.squarespace.com/

A client is using my template, but for some reason on a summary block on the homepage, the borders and border radius is only applying to the 1st and 3rd product image. When I deleted the block and added a new one, the borders applied to the 1st, 2nd, and not the 3rd. Very strange! Any help appreciated. 

Screen Shot 2022-10-28 at 11.51.58 am.png

Edited by PEARLERwork
Link to comment

By using DevTools, I was able to find that the image in the middle is larger than it's wrapper, so the CSS is being applied, but because it is larger than the container, it is just not showing. 

Instead of applying the bordering around the <img> element, apply the bordering CSS to it's parent element, ".summary-thumbnail img-wrapper". I pasted the CSS below:

.summary-thumbnail img-wrapper {
	border: 2px solid !important;
	border-color: inherit !important;
	border-radius: 12px;
}

 

Feel free to email me with any customization inquiries or questions you may have!

Free Squarespace Resources: DevTools Minicourse,  11-Step Guide to Improve Custom CSS, Free Product/Pricing Comparison Table Generator

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.