4 replies [Last post]
dddmx3
dddmx3's picture
Offline
Enthusiast
Battle Ground, WA
Last seen: 11 years 14 weeks ago
Battle Ground, WA
Timezone: GMT-8
Joined: 2010-11-15
Posts: 68
Points: 86

If scroll down on the right side you'll see a box with the title "Ads"
How do I make the font color white (for that sidebox) without making the main body text white?

My website: www.AR-Auto.com

I tried putting this class into my template.css:

a.adlinks {
color:#ffffff;
}

and then updating the ads by adding a class to them:

<a class="adlinks" target="_blank" href="http://totalpartssource.com/">Total Parts Source<br> 
Your #1 source for<br>
new and used parts!<br><br></a

But it did not work!

Visit my website:
www.RumorCo.com

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 4 weeks 5 days ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2057
Points: 2289

Well, just as I said in the

Well, just as I said in the last thread concerning this same question, it could be a specificity issue (check link in other thread). Check out Firebug plugin for Firefox.

Duplicate question: http://csscreator.com/topic/change-font-color-sidebox You should probably continue there instead of starting new threads for the same question.

makr
makr's picture
Offline
newbie
Stockholm, Sweden
Last seen: 12 years 23 weeks ago
Stockholm, Sweden
Timezone: GMT+1
Joined: 2010-12-20
Posts: 10
Points: 10

Try adding !important to the

Try adding !important to the class

Example:

a.adlinks {
color:#ffffff !important;
}

This will override previous inheritance

Verschwindende
Verschwindende's picture
Offline
Guru
Last seen: 4 weeks 5 days ago
Timezone: GMT-4
Joined: 2009-10-09
Posts: 2057
Points: 2289

makr wrote:... This will

makr wrote:

... This will override previous inheritance

Or more correctly in this case, it overrides specificity. It's a much better idea to do it correctly than to apply a quick fix without understanding why it's overridden in the first place. This was already solved in the duplicate thread.

Hugo
Hugo's picture
Offline
Moderator
London
Last seen: 8 years 20 weeks ago
London
Joined: 2004-06-06
Posts: 15668
Points: 2806

Thread closed if it needs

Thread closed if it needs continuing do so in thread mentioned and linked to.

Also please don't proffer !important as a solution it's hacky and bad coding WP do it a lot!.

Before you make your first post it is vital that you READ THE POSTING GUIDELINES!
----------------------------------------------------------------
Please post ALL your code - both CSS & HTML - in [code] tags
Please validate and ensure you have included a full Doctype before posting.
Why validate? Read Me