Jump to content

Clickthrough with Hover for Image Blocks.

Recommended Posts

I have a page, it's a bunch of individual image blocks arranged in a grid. I set them all to inline with caption on hover but I wanted the hover to be the the full height of the image and the caption to be centered. So, I used this little bit of code here:

/* Image Captions on Hover*/
.image-caption-wrapper {
  min-height: 100%;
  display: flex;
  align-items: center; /*vertically centered */
  justify-content: center; /*text align center*/
  background: rgba(1, 1, 1, 0.6) !important; /* Background Overlay*/
}

However, I have now lost the ability to 'clickthrough' to another page on my site. How I can I get the 'hover' I want and still be able to 'clickthrough' anywhere on that image/thumbnail.

Thanks,

-A

Link to comment
  • Replies 1
  • Views 365
  • 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.