...

View Full Version : Resolved header link problems



Dan13071992
01-27-2012, 05:34 PM
hi guys, i have a problem with my css, basically on this particular header i want the font colour to be black, regardless of if its a link or not, however I want to leave the old A:link the same as normal as its white, its just with the header gold you cant see white text on it, below is my headergold css:



.headerGold
{
font-size: 13px;
font-family: verdana;
color: black;
background-image: url(/game/site/site/tablebg_gold.gif);

}


this makes all the text black, except from links :S, any help would be appreciated.

Cheers.

Dan

Keleth
01-27-2012, 05:36 PM
Sounds like you have css with a higher priority acting on the links (higher specificity most likely).

Try giving each of the links a class that makes them black, rather then inheriting the container's color.

Dan13071992
01-27-2012, 05:38 PM
i also have this:



A:Link
{
color: white;
text-decoration: none;
}


however I need this to stay intact :s

Keleth
01-27-2012, 06:08 PM
I thought you're trying to change the header links to black? So why not just make a class with the color black and apply it to the links? Or do something like


.headerGold a {
color: #000;
}

VIPStephan
01-27-2012, 06:20 PM
Yeah, you have to apply link colors separately, they are not inherited by general parent element’s color.

Dan13071992
01-27-2012, 06:21 PM
so far ive got this:



.headerGold2 a {
color: #000;
}

.headerGold2
{
font-size: 13px;
font-family: verdana;
color: black;
background-image: url(/game/site/site/tablebg_gold.gif);

}


which isnt changing the colour of the link :S below is a picture:

http://crimewave.360-tactics.co.uk/inboxhead.png

Dan13071992
01-27-2012, 06:28 PM
sorry for the double post, i figured it out:



.headerGold2 A:Link {
color: #000000;
}
.headerGold2 A:Visited
{
color: #000000;
}
.headerGold2
{
font-size: 13px;
font-family: verdana;
color: black;
background-image: url(/game/site/site/tablebg_gold.gif);

}


cheers for your help guys :)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum