gpigate
06-17-2009, 05:47 PM
To me this seems easy enough... but for some reason I cant get it to work just right.
I am coding a navbar menu in which I want an icon on the left which changes when hovered upon. It needs to be separate from the text of the link. The background of the image is below. The grey is the base, the orange is the hover, and the example is obviously just to show what I hope to have it look like in the end.
unfortunately this is old code that is still using tables. I am about to whack it all and go with div's. I briefly tried that and couldnt get it to work either, is there something wrong with what im trying to do?
echo "<tr><td width=\"300\"> </td><td align=\"left\" class=\"Navbar\"><a href=\"".$nav1['nav1_path']."\"".$relative.">".$nav1['nav1_title']."".$arrow."</a></td></tr>\n";
.Navbar { color: #000000; font-size: 10pt; font-family: Tahoma; text-decoration: None; background: url(navlink_bg.jpg); padding:3px 0px 10px 20px; height:25px; }
.Navbar:hover { color: #000000; font-size: 10pt; font-family: Tahoma; text-decoration: None; background: url(navlink_hover.jpg); padding:3px 0px 10px 20px; height:25px; }
I am coding a navbar menu in which I want an icon on the left which changes when hovered upon. It needs to be separate from the text of the link. The background of the image is below. The grey is the base, the orange is the hover, and the example is obviously just to show what I hope to have it look like in the end.
unfortunately this is old code that is still using tables. I am about to whack it all and go with div's. I briefly tried that and couldnt get it to work either, is there something wrong with what im trying to do?
echo "<tr><td width=\"300\"> </td><td align=\"left\" class=\"Navbar\"><a href=\"".$nav1['nav1_path']."\"".$relative.">".$nav1['nav1_title']."".$arrow."</a></td></tr>\n";
.Navbar { color: #000000; font-size: 10pt; font-family: Tahoma; text-decoration: None; background: url(navlink_bg.jpg); padding:3px 0px 10px 20px; height:25px; }
.Navbar:hover { color: #000000; font-size: 10pt; font-family: Tahoma; text-decoration: None; background: url(navlink_hover.jpg); padding:3px 0px 10px 20px; height:25px; }