Jump to content

making gradient hover


tvbtoday

Recommended Posts

Images.
If you set your a tag to have a background image, then you can set the a:hover to have a different background image when you hover over it. For example:HTML
<div id="menu"><ul><li>Menu item 1</li><li>Menu Item 2</li><li>Menu Item 3</li></ul></div>

CSS

#menu li a{background: #xxx url(images/yyy.gif) repeat-x;}#menu li a:hover{background: #xxx url(images/zzz.gif) repeat-x;}

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...