Hi there, I noticed in another post that it is possible to have multiple link types using CSS. Is this done by using multiple A:link tags or by specifying a defult with A:link etc, and then having custom span tags for others?
I have tried to last of these two, but it did not seem to work. Maybe it is because I am using tables?
When you want your link to utilize these attributes, just use the following code <BLOCKQUOTE><font size="1" face="Verdana, Arial">code/font><HR><pre><a class="nav" href="this_page.html">text here</a>[/code].
If you don't specify a class, then the attributes would be your default. When you put in your links, you would do it just like normal HTML.
Does this help?
You can also reference a page for us to see. Maybe you've missed something along the way.
Ok, I tried out those things using only external styles and they worked. BUT.. for some reason, all atributes of my default link properties work (hover, active, visited), however, the actual link colour does not.
When I cut the same properties from the external style sheet and put them as internal styles (for the default links only, all other styles stay as external), it all works (including the additional classes I have added).
There is actually a link above in one of my earlier replies. But here they are again. www.webmasterslibrary.com for the non-working default link colour. www.webmasterslibrary.com/articles/ for the working version using the default link properties as internal styles.
Problem is, the same code which works fine with internal styles does not work when put in external style. However, All styles except the default link colour work. (including the hover, visited properties for the default link type)
Thanks for your help everyone. I found out what the problem was though..
Removing the <style> and </style> from the external styles file made everything work. It is strange that everything except the default link colour worked before I removed it though.
Bookmarks