Preserved Topic: Changing link colors more than once (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
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? |
Maniac (V) Inmate From: under the bed |
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 |
Paranoid (IV) Inmate From: Minneapolis, MN, USA |
posted 05-28-2000 10:00
hmmm, how browser friendly is it though? That is, what browsers support CSS? |
Maniac (V) Lord Mad Scientist Sovereign of all the lands Ozone and just beyond that little green line over there... From: Stockholm, Sweden |
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> |
Maniac (V) Inmate From: under the bed |
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: |