0

I have a grid of images that when I hover over them, the image opacity reduces to display a div exactly under the image with a clickable link. I haven't been able to click the link when the image lightens. I'm also not sure how to target the hover on one div and then affect another divs style. I haven't included the img-grid container which houses all the 'press-info' divs. here is a snippet of my code.

enter image description here

press-info {
   width: 350px;
   height: 460px;
   padding: 1.5rem;
   /* border: 1px solid blue; */

}

.card {
   position: relative;
   width: 100%;
   height:100%;
   /* border: 1px solid green; */
}

/* card front styling */


.face.front{
   /* border: 1px solid red; */
   position: absolute;
   width: 100%;
   height: 100%;
   transition: opacity 1s;

}


.front img {
   width: 100%;
   height: 100%;
}
<div class="press-info">
           <div class="card">
              <div class="back face">
                 <a href="https://oddamagazine.com/project/fashions-future-designers/" `target="_blank">ODDA MAGAZINE`
                    : FASHION'S
                    FUTURE
                    DESIGNERS<br><span>⬈</span></a>
              </div>
              <div class="front face">
                    <img src="press/press-1.png">
                 </div>
             </div>
        </div>
m4n0
  • 29,823
  • 27
  • 76
  • 89
Laiqa Mohid
  • 461
  • 3
  • 14
  • The code you include isn't showing the problem - it is actually showing nothing at all. Please edit your question to include a [minimal,reproducible example](https://stackoverflow.com/help/minimal-reproducible-example) so we can see the problem and be able to help :) – FluffyKitten Aug 16 '20 at 16:16
  • thank you, I found the bug <3 – Laiqa Mohid Aug 16 '20 at 22:36

0 Answers0