-
Multiple link styles
I'm trying to remake my page, to make it without frames.
first problem I'm running into is this:
My menu is made up of a set of links with some style to them, however I don't want the other links on the page to look like that, but I'd like to have the same css document for the whole page, instead of multiple ones.
How can this be done?
-
Re: Multiple link styles
If I understand what you want to do, yes you can do that and just have one css file. You can set up your regular links as normal. Then for your special links you could create a class for the differently styled links. For example something like this:
HTML Code:
<a href="http://www.somesite.com" class="mystyledlink">
Then in your css:
Code:
a.mystyledlink:link {color: red;}
a.mystyledlink:visited {color: blue;}
a.mystyledlink:hover {color: pink;}
a.mystyledlink:active {color: green;}
You could also use descendent selectors. Hope this helps.
-
Re: Multiple link styles
Exacly what I needed, thx ;)
-
Re: Multiple link styles