double a's in css?

windows

Guest
lo lads,<br />
<br />
I defined my link styles in the top of my head, and i wondered, is it possible to define multiple css links ?<br />
<br />
btw, ive done it like this:<br />
<br />
a:link { font family: verdana; font-size: 10px; color: #999999; font-weight: bold; text-decoration: none;} <br />
a:visited { font family: verdana; font-size: 10px; color: #999999; font-weight: bold; text-decoration: none;} <br />
a:hover { font family: verdana; font-size: 10px; color: #999999 font-weight: bold; text-decoration: underline;}<!--content-->Sure, you just need to specify them like this:<br />
<br />
A.nav:link {<br />
color: #FFFFFF; <br />
text-decoration : none; <br />
font-weight: 600; <br />
font-size:14px; <br />
background: transparent;}<br />
<br />
where nav could be any text identifier you wish to use in the actual anchor tag, e.g. <a class="nav" href=http://www.htmlforums.com/archive/index.php/"http://www.ski-info-online.com>Great Ski Site</a><!--content-->Below is the code I use to do this on one of my sites. The top ones are the usual link attributes, then below that I have defined a class called 'small'. You can define as many classes as you want and call them what you want. Then to use them you just put <a class="small" href=http://www.htmlforums.com/archive/index.php/"blah.html">link</a> in the code to call up the class. Here's my code:<br />
<br />
<br />
A:link {color: #000066; text-decoration:none; font-family: verdana,arial; font-size: 12px;}<br />
A:hover {color: red; text-decoration:none; font-family: verdana,arial; font-size: 12px;}<br />
A:visited {text-decoration:none; font-family: verdana,arial; font-size: 12px;}<br />
<br />
.small A:hover {color: red; text-decoration:none; font-family: verdana,arial; font-size: 9px;}<br />
.small A:visited {text-decoration:none; font-family: verdana,arial; font-size: 9px;}<br />
.small A:link {color: #000066; text-decoration:none; font-family: verdana,arial; font-size: 9px;}<!--content-->thanx both!<br />
<br />
*sigh* how are ye goldi?<br />
Still hooked up? =]<!--content-->
 
Back
Top