Jump to content

Remove Padding on Image Blocks while Adding Drop Shadow

Recommended Posts

Site URL: https://seabass-maroon-5h8g.squarespace.com/

I have added a drop-shadow on a hover effect on my images, but I would like to remove the padding between the images.

I want the end result to be similar to this page: https://www.copleyequity.com/#portfolio

When I have tried to remove the padding using the below code, the images zoom in and when you hover over the images on the top row, it shifts the images below them down. I don't want this to happen. I'd like the images to not zoom in and stay static.

padding:0!important;

 

Current code:

<style>
  .image-block:hover {
  filter:drop-shadow(0px 0px 12px #D3D3D3);
  }
  <style>

 

password: oakpointtest

Link to comment
  • Replies 4
  • Views 452
  • Created
  • Last Reply

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.