I am kinda new at CSS and other than adding class's in DreamWeaver i dont know what to do. If i wanted to add you basic link variables (ie. Link, Active, Visited, Hover) How would i do that? What would be the code i put into my style.css?
| SitePoint Sponsor |
I am kinda new at CSS and other than adding class's in DreamWeaver i dont know what to do. If i wanted to add you basic link variables (ie. Link, Active, Visited, Hover) How would i do that? What would be the code i put into my style.css?



Hi, this is an example of my links using CSS:
Thats basically what CSS looks like (that is only an example though). Let me dig up a link for you on CSS2.Code:a:link {color: #808080; font-family: verdana; font-size: 10px; text-decoration: none; font-weight: bold;} a:active {color: #808080; font-family: verdana; font-size: 10px; text-decoration: none; font-weight: bold;} a:visited {color: #808080; font-family: verdana; font-size: 10px; text-decoration: none; font-weight: bold;} a:hover {color: #FFFFFF; font-family: verdana; font-size: 10px; text-decoration: none; font-weight: bold;}
Edit:
http://www.w3.org/TR/REC-CSS2/ I suggest downloading it.
I noticed that my example isnt very good. But you can see it in action at my site (see sig) to get an idea of how it would work.
Hope this helps
Last edited by RussellG; Jul 4, 2001 at 20:16.
russell.cz.cc - coming soon (I promise!)
This article helped me a lot: http://www.thepattysite.com/dreamwea...nkstyles3.html
You will run into problems when all your links are the same, to combat this use classes:
a.theclass:link{color:#000000; font-family:arial;}
Now all your links need classes:
<a href="wherever.net" class="theclass">Link</a>
Bookmarks