Jump to content

Hover caption on image - whole image as a clickable link

Recommended Posts

Hi,

I have a series of image blocks on the home page which I would like some text (caption) to appear on hover.

 

I have used this code:

 

.layout-caption-overlay-hover .image-caption-wrapper {background:transparent!important; min-height:100%; top:40%!important;}

.layout-caption-overlay-hover .image-caption-wrapper h2, .layout-caption-overlay-hover .image-caption-wrapper p{color:white!important; transition:0.5s}

 

Which has pushed the image caption to the center and made the caption background transparent. However it has made only the top 40% portion of the image a clickable link. Is there a way to have the whole image clickable?

 

Cheers,

Will.

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