Topic: Another link color (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=11017" title="Pages that link to Topic: Another link color (Page 1 of 1)" rel="nofollow" >Topic: Another link color <span class="small">(Page 1 of 1)</span>\

 
KARN
Bipolar (III) Inmate

From: North Bay, Ontario, CA
Insane since: Apr 2001

posted posted 07-29-2003 18:10

in my css there's a a:link code and this code applies to the whole page. On some section where there's links/urls i want the color to be different... is there a possible way of setting a second link color and applying it to only parts i want... i was thinking of class but don't know how...

HZR
Bipolar (III) Inmate

From: Cold Sweden
Insane since: Jul 2002

posted posted 07-29-2003 19:52

Yea, you could do something like

code:
a { color: #000; }
#menu a { color: #666; }


All anchors inside the element with the menu id will now get a different color from the rest.



[This message has been edited by HZR (edited 07-29-2003).]

Slime
Lunatic (VI) Mad Scientist

From: Massachusetts, USA
Insane since: Mar 2000

posted posted 07-29-2003 20:00

http://www.ozoneasylum.com/Forum8/HTML/000621.html

Rinswind 2th
Maniac (V) Inmate

From: Den Haag: The Royal Residence
Insane since: Jul 2000

posted posted 07-29-2003 21:33

Look at my bookmarks page for an example there are three sorts of links on the page and all look different.
Bookmarks
I used classes and pseudo-classes to do this trick. The pseudo classes are defined with : the classes are defined with . Just take a look at the code.
__________________________________________
"Art has to be forgotten. Beauty must be realized."
Piet Mondriaan
bookmarks

[This message has been edited by Rinswind 2th (edited 07-29-2003).]



Post Reply
 
Your User Name:
Your Password:
Login Options:
 
Your Text:
Loading...
Options:


« BackwardsOnwards »

Show Forum Drop Down Menu