|
|
|||||||||
|
|||||||||
|
|||||||||
| |
||
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Don't know if this is the place to post this, but figure it can't hurt. I'm just starting a new site and trying to finish up the CSS that will be referrenced. What I'm looking for, is different link colors (visited, non-visited, and hover) for different classes. In otherwords, the links across the nav bar are "menufont" class and the link colors should be one set of colors. The links in the "bodytext" class should be a totally different set of colors. I tried different approaches, but it always seem to not be able to seperate the two. I am assuming this can be done. Any help would be greatly appreciated.
|
|
#2
|
||||
|
||||
|
Play with this:
Code:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<style type="text/css">
a.menufont:link {
color:blue;
}
a.menufont:visited {
color:purple;
}
a.menufont:hover, a.menufont:active {
color:grey;
}
a.bodytext:link {
color:green;
}
a.bodytext:visited {
color:orange;
}
a.bodytext:hover, a.bodytext:active {
color:black;
}
</style>
</head>
<body>
<p><a class="menufont" href="javascript:;">Menu Font URL
</a>
</p>
<p><a class="bodytext" href="javascript;">Body Text URL</a></p>
</body>
</html>
__________________
If you found a post of mine helpful, please click on the on my post to add to my reputation.
|
|
#3
|
||||
|
||||
|
Thanky thanky! Exactly what I was looking for!
Cheers Jim |
![]() |
| Viewing: ASP Free Forums > Programming > HTML, JavaScript And CSS Help > CSS help |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|