...

View Full Version : Links color



CaptainB
07-07-2007, 11: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, 11: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, 11:47 AM
Thanks bud :)

But what does the background:inherit; btw do?

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

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

koyama
07-08-2007, 01: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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum