I am currently working on a site for a client who has decided that they want different colour hyperlinks in different areas of the site currently it is set like this:
Code CSS:a, a:link { color: #99cc00; font-weight: bold; text-decoration: none; } /* Sets the style for visited links. */ a:visited { color: #ff6699; font-weight: bold; text-decoration: none; } /* Sets the style for links on mouseover. */ a:hover { color: #A1CBDE; text-decoration: underline; } /* Sets the style for a link that has focus. */ a:focus { color: #A1CBDE; } /* Sets the style for a link that is being activated/clicked. */ a:active { color: #ff9900; } /* Sets the style for unvisited links. */
What I'm not sure about is how I can set each pages' hyperlink with a different set of colours, should I do this as a class or can I produce a rule like this? :-
Code CSS:a1, a1:link { color: #ff9900; font-weight: bold; text-decoration: none; } /* Sets the style for visited links. */ a1:visited { color: #ff6699; font-weight: bold; text-decoration: none; } /* Sets the style for links on mouseover. */ a1:hover { color: #99cc00; text-decoration: underline; } /* Sets the style for a link that has focus. */ a1:focus { color: #A1CBDE; } /* Sets the style for a link that is being activated/clicked. */ a1:active { color: #ff9900; }
Just need some advice.








Bookmarks