Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Hover Problem 1

Status
Not open for further replies.

mainmast

Programmer
Jun 26, 2003
176
US
Hello,

On my website: I have a change when you hover over the links on the left.

In IE, the whole row is changed to black (like I want it to do), but in FireFox it only changes the background to black around the link itself, not the whole row.

Here's the code:
Code:
A.MainNav:Hover
{
Color: #FFFFFF;
Width: 234px;
Background-Color: #000000;
Text-Decoration: Underline;
}


Any suggestions on how I can get the entire row to change to black in FireFox? Thanks.
 
Also, I definately want to avoid using a client side script, like Javascript, if possible.
 
FireFox is right. You cannot apply width to an inline element which a is. Try changing its display to block;
Code:
.mainnav {
  display: block;
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top