Hello, I decided to make a website using a template from wix.com, I'm just learning, so I can’t figure out how to make a block with a picture appear yellow with opacity 0.6 somewhere and at the same time so that this picture would be a link to yourself but in the gallery window from fancybox. My yellow fill already costs through hover , but the picture does not work as a link, if I remove the hover , the link becomes active and the gallery works as intended.
Here is a link to the site template
The "About Us" tab, below is a photo of the team, when you hover over them with the mouse, they are filled with yellow, and there is no block with the text, it works for me, but the link in the picture to the gallery does not work as in the original template.
Here is the code:
.im { width: 240px; height: 198px; margin-bottom: 5px; border: none; position: relative; } .im:hover { transition: all .5s; background: yellow; content: " "; opacity: 0; position: absolute; top: 0; bottom: 0; left: 0; right: 0; } div:hover .im:after { opacity: .6; } .emp1, .empinfo1 { padding-left: 10px; } .emp1 { font-family: play, sans-serif; margin-top: 5px; padding-top: 15px; background-color: #CFCFCF; display: block; position: absolute; width: 230.2px; height: 29px; color: #FFFFFF; font-size: 19px; } <tr> <td id="td1"> <div id="line1block7"> <div class="im"> <a class="gallery" rel="group" href="images/com_1big.jpg" width="240px" height="198px"> <img src="images/com_1.jpg" width="240px" height="198px"> </a> </div> <span class="emp1">Юлия Соколова</span><span class="empinfo1"><p class="text1">Руководитель студии<br><br>Это текст. Кликните дважды, чтобы отредактировать его. Расскажите посетителям сайта о себе, своих услугах и преимуществах.</p></span> </td> </div> Please help me understand, otherwise I will sit on this point for another two weeks.
.im:hoverposition: absolute- Yuri