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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

mouseOver behavior won't look the same in two buttons that are the sam

Status
Not open for further replies.

photoxprt1868

Programmer
Jul 22, 2005
76
US
Hello,

I have a list of bulleted buttons. In the style sheet, I have no decoration on the active stage, and underline on the hover stage. However, only some buttons underline, and others don't. It's even inconsistent from my local drive to the production server. This thing has a mind of its own. What can i do?

Here's some code

Code:
.homeBottomBuckets a:link{
font:Arial, Helvetica, sans-serif;
font-size:10pt;
text-decoration:none;
color:#004D71;
}

.homeBottomBuckets a:hover{
font:Arial, Helvetica, sans-serif;
font-size:10pt;
text-decoration:underline;
color:#0066FF;
}

.homeBottomBuckets a:visited{
font:Arial, Helvetica, sans-serif;
font-size:10pt;
text-decoration:none;
color:#004D71;
}


The class homeBottomBuckets is applied to the table that sorounds these bullet links.

Thank you
 
Yeah, when a conflict appears, browsers will give precedence to the latest rule in the style sheet - so if you have a link that's visited, and you hover over it, the browser will apply the visited rules over the hover rules from your sheet because they're later.

You also don't need to redefine every rule for every pseudo class, just the ones that change, so do it like this:
Code:
.homeBottomBuckets a:link,
.homeBottomBuckets a:visited{
font:Arial, Helvetica, sans-serif;
font-size:10pt;
text-decoration:none;
color:#004D71;
}

.homeBottomBuckets a:hover{
text-decoration:underline;
color:#0066FF;
}

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top