Topic: Another link color Pages that link to <a href="https://ozoneasylum.com/backlink?for=11017" title="Pages that link to Topic: Another link color" rel="nofollow" >Topic: Another link color\

 
Author Thread
KARN
Bipolar (III) Inmate

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

IP logged posted posted 07-29-2003 18:10 Edit Quote

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

IP logged posted posted 07-29-2003 19:52 Edit Quote

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

IP logged posted posted 07-29-2003 20:00 Edit Quote

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

Rinswind 2th
Maniac (V) Inmate

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

IP logged posted posted 07-29-2003 21:33 Edit Quote

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