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
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

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.