Jump to content

How to add an active link overlay to an image block

Recommended Posts

Posted

Does anyone have possible solutions to indicate to my site visitors that certain graphical elements on my site are hyperlinked other than the pointer cursor changing to a hand cursor? I really don't want to put a button underneath the image / graphical element and not interested in using caption overlay on hover effect. I was thinking if the entire image block could change color when you hover over it to indicate to click it would be ideal. How do you do this? Any suggestions are welcomed. Thanks!!

  • Replies 4
  • Views 968
  • Created
  • Last Reply
Posted

@Jimmibono Try Adding to Home > Design > Custom CSS


div#block-yui_3_17_2_1_1523043813683_96145 .image-block-wrapper:after {
   content: "";
   background: #000;
   position: absolute;
   width: 100%;
   left: 0;
   right: 0;
   top: 0;
   bottom: 0;
   opacity: 0;
}
div#block-yui_3_17_2_1_1523043813683_9614 .image-block-wrapper:hover:after {
   opacity: 0.5;
}
div#block-yui_3_17_2_1_1523043813683_9614 .image-block-wrapper {
   position: relative;
}


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

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

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.