Closed Thread Icon

Preserved Topic: Changing link colors more than once Pages that link to <a href="https://ozoneasylum.com/backlink?for=15246" title="Pages that link to Preserved Topic: Changing link colors more than once" rel="nofollow" >Preserved Topic: Changing link colors more than once\

 
Author Thread
jiblet
Paranoid (IV) Inmate

From: Minneapolis, MN, USA
Insane since: May 2000

posted posted 05-26-2000 18:49

Is there anyway to have different link colors for different parts of a page without using frames? More specifically I have a white background table with links inside it which I want to be dark colored, but there is also a navbar outside the white table over a maroon background,hence the need for light links. Any suggestions besides using frames or images for links?

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 05-26-2000 19:53

Yes -- CSS.<P>this is how you would set it up - you need two "classes" of links. You declare the style attributes in the head of the HTML document like this(substitute html brackets for the "^" symbol):<P>^STYLE TYPE="TEXT/CSS"^<P>A.INSIDE {color: #330000; font-family: verdana, arial; font-size: 12px;}<P>A.OUTSIDE {color: #FF9999; font-family: verdans, arial; font-size: 12px;}<P>^/STYLE^<P>and then, in the link tag itself, you declare which class of anchor tag it is:<P>^a class="inside" href="blahblah.blah"^<P>if you want more info on CSS, check out
http://www.projectcool.com, or http://w3c.org <P>they are both excellent sources of information. You can specify almost anything using CSS, with as many different variations as you want.<P>p.s. note the lack of quotations in the style attributes!<P>This has been another episode of "My 2 Cents" with your host, DL-44<p>[This message has been edited by DL-44 (edited 26-05-2000).]

jiblet
Paranoid (IV) Inmate

From: Minneapolis, MN, USA
Insane since: May 2000

posted posted 05-28-2000 10:00

hmmm, how browser friendly is it though? That is, what browsers support CSS?

DocOzone
Maniac (V) Lord Mad Scientist
Sovereign of all the lands Ozone and just beyond that little green line over there...

From: Stockholm, Sweden
Insane since: Mar 1994

posted posted 05-28-2000 10:32

Mostly, you'll be limited to all 4+ level browsers, and to a lesser extent, the 3 level browsers. IE should handle the link color, I belive, if not some of the cooler bits. Netscape I can't check unless I quit this browser, and I've alrwady typed this far! You should get 95%+ of the viewers with this, though.<P>

DL-44
Maniac (V) Inmate

From: under the bed
Insane since: Feb 2000

posted posted 05-28-2000 22:33

project cool has a list of all possible attributes, and which ones are supported by which browsers -- check it out:
http://www.projectcool.com/developer/reference/css_style.html <P> <P> <p>[This message has been edited by DL-44 (edited 28-05-2000).]

« BackwardsOnwards »

Show Forum Drop Down Menu