Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
Advanced Search
  • 0

Hover caption on image - whole image as a clickable link


will_nic

Question

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

Top Posters For This Question

Top Posters For This Question

1 answer to this question

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment


×
×
  • Create New...