CSS Hover Tip

If you ever have issues with CSS and your a:hover doesn’t seem to be working I may have the fix. You have to put your a:link information before your a:hover info.

This works:

.toprightmenu a:link, .toprightmenu a:visited {
font-weight: bold;
text-decoration: none;
font-size: 10px;
color: #999999;
}

.toprightmenu a:hover, .toprightmenu a:visited:hover {
font-weight: bold;
text-decoration: none;
color: #003366;
}

This doesn’t:

.toprightmenu a:hover, .toprightmenu a:visited:hover {
font-weight: bold;
text-decoration: none;
color: #003366;
}

.toprightmenu a:link, .toprightmenu a:visited {
font-weight: bold;
text-decoration: none;
font-size: 10px;
color: #999999;
}

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">

Notify me of followup comments via e-mail. You can also subscribe without commenting.