PDA

View Full Version : css question


neocivitas
Sun 13th Jul '03, 5:37pm
How do I use css to specify different classes of links with different properties and use them to selectively override the css specification for all other links?

Thanks.

neocivitas
Mon 14th Jul '03, 2:07pm
Never mind, I found it.

<style type="text/css">
<!--
.blah a:link {
color: #xxxxxx;
text-decoration: whatever;
}
.blah a:visited {
color: #xxxxxx;
text-decoration: whatever;
}
.blah a:hover, .tcat a:active {
color: #xxxxxx;
text-decoration: whateverelse;
-->
</style>

<p style="blah"><a href="http://www.blah.tld">Click Me!</a></p>