Help - Search - Members - Calendar
Full Version: Hyperlink font color
HTMLHelp Forums > Web Authoring > Cascading Style Sheets
James
Please have a look at: http://www.warural.com.au/ravensthorpe.html and you will see that the "contents" links are in a maroon color on a dark blue background .. not very visible. I want the text to be white in this section (but not in the Navbar).

In my CSS* I tried making <p> text white ... that didn't work. (p {color: white;})
I tried making hyperlinks within paragraphs, white (p a {color: white;}) ... that didn't work.
I tried several other approaches, but nothing will change the maroon text to white.

I would be obliged if you cold help me with this challenge.

*My CSS file is: http://www.warural.com.au/warc.css

Kind regards, James
James
Please have a look at: http://www.warural.com.au/ravensthorpe.html and you will see that the "contents" links are in a maroon color on a dark blue background .. not very visible. I want the text to be white in this section (but not in the Navbar).

In my CSS* I tried making <p> text white ... that didn't work. (p {color: white;})
I tried making hyperlinks within paragraphs, white (p a {color: white;}) ... that didn't work.
I tried several other approaches, but nothing will change the maroon text to white.

I would be obliged if you cold help me with this challenge.

*My CSS file is: http://www.warural.com.au/warc.css

Kind regards, James
Darin McGrew
Did you fix something? It looks fine to me.
Peter1968
Looks like you fixed it. Not seeing any issues at all.
James
QUOTE(Peter1968 @ Jun 29 2007, 01:36 PM) *

Looks like you fixed it. Not seeing any issues at all.


Hi Peter - you're right! It seems to be fixed, but that, in itself, is a mystery. I posted my question just before I went to work, at which time the text was definitely not white. Now, at the end of the day, it is, as you say, white and working fine?

Maybe, when I uploaded the changes to my host's server, they did not register straight away, but did so after I went to work.

Anyway, thanks for taking the time to answer. Perhaps you would be kind enough to answer this for me:

If I have a hyperlink, within a paragraph, which, in turn, is within a container (like "contents"), is it true that you can define {color: white} at any one of those levels, and the text will be white (as long as it is not redefined lower down the line of inheritance)?

As I understand it, with some exceptions, like border properties, all parent attributes apply to child containers, unless redefined in the child container. I am a bit of a newbie and would be obliged if you can help me get this concept right in my mind.

Many thanks, James
pandy
Double post. Threads merged. ninja.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.