Hi all... [disclaimer]can I just mention I'm no CSS expert so go easy on me, I'm sure that the below code is not necessarily how everyone might do it and welcome any pointers[/disclaimer]
I have created a vertical navigation menu. Doing nothing, the background image is white with a yellow ball on the right of the block, when the mouse hovers over it changes to a blue ball.
What I would like to know is- can I have some of the mouse-over images change to something different, an alternate image, and if so, how would I go about it.
Thanks for looking
Here's my CSS code
...and here is my ul list code
I used to have a handle on life... but it broke. Cpt. Red Bull
I have created a vertical navigation menu. Doing nothing, the background image is white with a yellow ball on the right of the block, when the mouse hovers over it changes to a blue ball.
What I would like to know is- can I have some of the mouse-over images change to something different, an alternate image, and if so, how would I go about it.
Thanks for looking
Here's my CSS code
Code:
.cssnav {
position:relative;
font-family: papyrus, verdana, helvetica, sans-serif;
background-image: url(imgs/button_over.gif);
background-repeat: no-repeat;
display: block;
width: 180px;
height: 40px;
margin: 0;
margin-bottom:0px;
padding: 0;
}
.cssnav a {
display:block;
font-size: 16px;
width: 180px;
height: 40px;
float: left;
margin: 0;
padding: 0;
color: black; text-decoration: none;
}
.cssnav img {width: 100%; height: 100%; border: 0; }
* html a:hover {visibility:visible}
.cssnav a:hover img{visibility:hidden}
.cssnav span {
position:absolute;
left:5px;
top:3px;
margin:0;
cursor: pointer;
}
Code:
</div>
<div id="sidebar">
<div class="cssnav"><a href="ourchalet.html"><img src="imgs/button.gif"><span>Our chalet</span></a></div>
<div class="cssnav"><a href="aboutus.html"><img src="imgs/button.gif"><span>About us</span></a></div>
<div class="cssnav"><a href="gallery.html"><img src="imgs/button.gif"><span>Gallery</span></a></div>
<div class="cssnav"><a href="winter.html"><img src="imgs/button.gif"><span>Winter</span></a></div>
<div class="cssnav"><a href="summer.html"><img src="imgs/button.gif"><span>Summer</span></a></div>
<div class="cssnav"><a href="prices.html"><img src="imgs/button.gif"><span>Prices</span></a></div>
<div class="cssnav"><a href="availability.html"><img src="imgs/button.gif"><span>Availabilty</span></a></div>
<div class="cssnav"><a href="comments.html"><img src="imgs/button.gif"><span>Guest comments</span></a></div>
</div>
<div id="footer"><img src="imgs/ca-footer.png" width="960" height="80"></div>
</div>
I used to have a handle on life... but it broke. Cpt. Red Bull