Hi, I’m trying to have a transparent orange colour overlay on my linked images for the hover state. On one I was able to get the colour but it’s not transparent. It’s as if the colour overlays on white instead of the photo on hover. Can you help me figure out how I can do that?
Hey i9design,
Thank you for the link to your site, I wrote this css for the image above your to demonstrate, the class for the image is: .orange_hover
.orange_hover:hover:before {
content:"";
display: block;
height: 100%;
position: absolute;
visibility: visible !important;
top: 0;
left: 0;
width: 100%;
background: rgba(212, 118, 10, 0.5) !important;
}
I felt this looks better when the opacity is removed, so try testing with this also:
body .flex_column.avia-link-column.avia-link-column-hover:hover {
opacity: 1 !important;
}
Best regards,
Mike
Awesome thank you Mike! This works perfectly and I like your suggestion better as well.
Is there a way to have the text be on top of the overlay?
Hi,
Glad to hear, to have the text on top please try adding this css:
.orange_hover:hover h1 {
z-index: 50;
position: relative;
}
Best regards,
Mike
Thank you for your help. Works great!
Hi,
I’m glad this was resolved. If you need additional help, please let us know here in the forums.
Best regards,
Jordan Shannon