I looked for all the ways to give hover
in one element and change another and some of them already knew and had trying but it was not working, so I went looking for others and I tried everything #example:hover + #change
, #example:hover ~ #change
, #example:hover #change
, etc but none of them worked. So I went for the easiest solution, jQuery
, but he was bugging when he applied the effects, sometimes applied other times not, I tried to go with the normal css again. But I could not find ways!
HTML :
<div class="section">
<img id="thumbnail" src="img.png">
<h2 id="title"><center><span>Some title</span></center><h2>
</div>
CSS:
#thumbnail:hover #title {
font-size: 30px;
}