Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 11-18-2010, 04:54 AM   PM User | #1
madmatter23
Regular Coder

 
Join Date: Jun 2007
Location: Maryland, USA
Posts: 165
Thanks: 12
Thanked 0 Times in 0 Posts
madmatter23 is an unknown quantity at this point
Can't change font color via css

I can't seem to make the font color on a particular element change to white. I've added color:white !important; to almost every parent element, but it makes no difference.

The website is question is here:
this site

I'm trying to make the text under "Resources" white. Adding styles to h3.accordion-header seems to have no effect.

I'd be grateful for any ideas anyone could offer.

Thanks!
madmatter23 is offline   Reply With Quote
Old 11-18-2010, 10:12 AM   PM User | #2
marilynn.fowler
Regular Coder

 
Join Date: Aug 2002
Location: San Francisco
Posts: 442
Thanks: 19
Thanked 15 Times in 15 Posts
marilynn.fowler is an unknown quantity at this point
I counted 31 stylesheets in your homepage alone. With that many sheets you can't help but have problems. Does the homepage really need all 31 stylesheets? Whittle it down to one or two, then you'll be able to better isolate your problem. Oh, and validate them; that usually ferrets out typos that undermine your changes.
__________________
Outside of a dog, a book is man's best friend. Inside of a dog it's too dark to read. Groucho Marx
marilynn.fowler is offline   Reply With Quote
Old 11-18-2010, 10:14 AM   PM User | #3
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,827
Thanks: 9
Thanked 685 Times in 679 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
Your css looks fine and the colour setting shows as white in Firebug - so I'd guess your Cufon is somehow overriding the css colour. Looks like you're using a Drupal plugin for Cufon - is it possible that somewhere in the settings for that the colour is being set, overriding the css?

If, for example, your Cufon code is like this:

Code:
Cufon.replace('h1',{fontFamily: 'Museo',color:'red' });
then h1 will be red whatever your css says.
SB65 is offline   Reply With Quote
Old 11-19-2010, 02:38 AM   PM User | #4
jibin
New Coder

 
Join Date: Oct 2010
Location: India
Posts: 11
Thanks: 0
Thanked 0 Times in 0 Posts
jibin is an unknown quantity at this point
We cannot stle id and class with cufon. cufon detects popular JavaScript frameworks like jQuery, MooTools etc, so if you’re using one you can style classes and ids also...
jibin is offline   Reply With Quote
Old 11-19-2010, 07:23 AM   PM User | #5
SB65
Senior Coder

 
Join Date: Feb 2009
Location: West Yorkshire
Posts: 2,827
Thanks: 9
Thanked 685 Times in 679 Posts
SB65 will become famous soon enoughSB65 will become famous soon enough
Quote:
Originally Posted by jibin View Post
We cannot stle id and class with cufon. cufon detects popular JavaScript frameworks like jQuery, MooTools etc, so if you’re using one you can style classes and ids also...
The OP is using jQuery.
SB65 is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 01:41 AM.


Advertisement
Log in to turn off these ads.