Posts: 487
Name: Mark Stegeman
Location: Netherlands, Europe
|
Short tutorial:
Step 1:
Put the images together in one image, under each other is probably best.
Then go to your menu and define the style something like this:
Code:
.menu a {
background: #fff url(images/background.jpg) no-repeat 0px 0px; /* Replacement color / Path to the combined image / Non repeating / Get the 'first' image */
height: 100px; /* The height of 'one' image */
}
.menu a:hover {
background-image: #fff url(images/background.jpg) no-repeat 100px 0px; /* Replacement color / Same combined image / Non repeating / Make sure we get the 'second' image this time
height: 100px; /* Still the height of 'one' image */
}
I'll dig you up a link to a better tutorial as well. :P
This gives a full explanation for a full menu, but I think only the rollover part matters to you.
http://www.ssi-developer.net/css/men...r-effect.shtml
__________________
<?php ($helpfull>0)?$talkupation++ : '';?>
Last edited by Insensus; 12-04-2008 at 12:43 PM..
|