Hello,
I am trying to make a image change from one to another on mouse hover. Here is what I have currently but it is not working. The image which is supposed to appear on mouse hover is coming on the line under the default image.
in the html file:
<ul> <li><a href="home.html"><img src="button-13.png"></a></li>
<li><a href="members.html"><img src="button-14.png" class="rollover2"><></a></li>
</ul>
In the sytlesheet:
img.rollover2{
background: url("button-20.png");
}
img:hover{
opacity:0;
}
I am trying to make a image change from one to another on mouse hover. Here is what I have currently but it is not working. The image which is supposed to appear on mouse hover is coming on the line under the default image.
in the html file:
<ul> <li><a href="home.html"><img src="button-13.png"></a></li>
<li><a href="members.html"><img src="button-14.png" class="rollover2"><></a></li>
</ul>
In the sytlesheet:
img.rollover2{
background: url("button-20.png");
}
img:hover{
opacity:0;
}