| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Senior Member
Join Date: Oct 2004
Location: Chester
Posts: 364
|
Rollover Navigation
Hi, On my site I have a list style navigation that displays inline and I have my own icons next to the textual links. When I rollover the text changes colour, but the icons stay static. I would like to have the icons change in someway. Here is my CSS Code:
The link to the live site is here |
|
|
|
|
|
#3 (permalink) |
|
Senior Member
Join Date: Oct 2004
Location: Chester
Posts: 364
|
The icons are as backgrounds in the CSS. So could I have a rule like: #home a:hover { background: url(http://www.nicktoye.co.uk/images/home_hover.png) no-repeat 20px; } |
|
|
|
#6 (permalink) |
|
dt immigrant
|
Try this #home a:link{ background: url(path-to-image/normal-image.png) no-repeat 20px; } #home a:hover{ background: url(path-to-image/hover-image.png) no-repeat 20px; } LATER EDIT ---------------------------------------------------------------------------- I tried to replicate your code Code:
This is what I came up with. The problem is that, having 10px font in the links, "cuts" the edges of your icons. At this moment I can't think of an other solution (other than setting larger font-sizes for your nav or reducing the sizes of the icons) than javascript Last edited by emil : 20-01-2005 at 02:53. Reason: Added code |
|
![]() |