...

View Full Version : Can't change font color via css



madmatter23
11-18-2010, 05:54 AM
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 (http://hamiltonphotography.net/drupal-site/annapolis-maryland-wedding-photographer/resources-faqs)

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!

marilynn.fowler
11-18-2010, 11:12 AM
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.

SB65
11-18-2010, 11:14 AM
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:


Cufon.replace('h1',{fontFamily: 'Museo',color:'red' });

then h1 will be red whatever your css says.

jibin
11-19-2010, 03:38 AM
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...

SB65
11-19-2010, 08:23 AM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum