Jump to content

How to make an image clikable after using css hover code

Recommended Posts

 

Here is the code I used to make my gallery images hover 

 

.gallery-caption {

position: absolute;

top: 0;

left: 0;

background-color: rgb(134, 137, 140);/* overlay color */

height: 100%;

max-width: unset;

padding: 0;

opacity: 0;

}

.gallery-caption-wrapper {

text-align: center;

 

color : white;

}

.gallery-caption-content {

font-size: 2rem !important; /* caption font size */

color: White; /*caption font color */

}

.gallery-grid-item {

position: relative;

color: white;

 

}

.gallery-grid-item:hover .gallery-caption {

opacity: 1;

}

.gallery-caption-grid-simple {

transition-delay: 0ms;

}

Link to comment
  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Please post the URL for a page on your site where we can see your issue.

If your site is not public please set up a site-wide password, if you've not already done so.

Post the password here.

Adding a site-wide password does not allow anyone to alter your site. It only allows those with the password to see your site. Please read the documentation at the link provided to understand how it works.

Please read the documentation at the link provided on how to share a link to your site to understand how it works. A link to the backend of the your site won’t work for us, i.e. a url that contains /config/.

We can then take a look at your issue.

Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support!

Link to comment

I guess you need to add pointer-events: none; into this code

.gallery-caption {
position: absolute;
top: 0;
left: 0;
background-color: rgb(134, 137, 140);/* overlay color */
height: 100%;
max-width: unset;
padding: 0;
opacity: 0;
pointer-events: none;
}

 

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment

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.