Defining a link / hover style with CSS?

liunx

Guest
I can re-define the a and a:hover style so that my links all behave how I want. But this only works if all the links are supposed to behave the same.<br />
<br />
How can I define two different types of link? It might help to explain that I use Dreamweaver - so I am not a HTML expert by any means. I'm not even sure that a:hover is a HTML thing or just DW's way of making it easier for the user.<br />
<br />
In DW, it lets me re-define the a:hover style so that I can choose the colour etc.. for when the mouse enters a link. Does anyone know how to make two different link styles in DW, or if not, what code should I add to my <style> section manually, and how do I then call that with a tag?<br />
<br />
I hope this makes sense as a question.<!--content-->You can find out how to do it here: <!-- m --><a class="postlink" href="http://www.w3.org/TR/REC-CSS2/selector.html#link-pseudo-classes">http://www.w3.org/TR/REC-CSS2/selector. ... do-classes</a><!-- m --> But, in a nutshell, define some css like this:<br />
<br />
a.mylinks:hover {<br />
color: blue;<br />
font-weight: bold;<br />
}<br />
<br />
and then your link like this:<br />
<br />
<a href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.w3c.org" class="mylinks">This will be blue and bold on hover</a><!--content-->You're a damn star! THANKS!!<!--content-->lol... :D<br />
<br />
You're welcome!<!--content-->
 
Back
Top