PDA

View Full Version : Links color



CaptainB
07-07-2007, 10:15 AM
Hey!

In my CSS I have specified that all my links should be white. However I have one single link, which I don't want to be white but black. You can see it here, the one @ the footer: http://www.xflightx.port10.com/test/main-layout.php

How would I come around that?

Jutlander
07-07-2007, 10:24 AM
You assign an ID to it.


<a id="footerlink" href="copyright.php"> 2007 - XflightX | All Rights Reserved</a>

And then make the ID in your CSS:



a#footerlink {
color: #000;
background: inherit;
}

CaptainB
07-07-2007, 10:47 AM
Thanks bud :)

But what does the background:inherit; btw do?

Jutlander
07-07-2007, 10:51 AM
It does so the link inherits the background color of it's parent, in this case the footer.

CaptainB
07-07-2007, 11:04 AM
Ahh! That's smart lol. Thanks again :thumbsup:

koyama
07-08-2007, 12:48 PM
Yeah, the inherit keyword is smart, but unfortunately it isn't supported in IE6 which is why we still cannot rely on that it works.