Answer the question
In order to leave comments, you need to log in
How to make a hover effect on a link image with a description?
Hello, I have a beginner question. Here is a piece of HTML code:
<div id="container">
<div id="left"><a href="#"><img src="" alt=""><span class="texthover">Какой-то текст</span></a></div>
</div>
#container > div > a:hover
{
color: #3a3f5d;
transition: 0.5s;
}
#container > div > a > img:hover
{
opacity: 1;
}
Answer the question
In order to leave comments, you need to log in
#container > div > a:hover > span {
color: #3a3f5d;
transition: 0.5s;
}
#container > div > a:hover > img {
opacity: 1;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question