Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 5 of 5
  1. #1
    Regular Coder
    Join Date
    Jun 2007
    Location
    Maryland, USA
    Posts
    165
    Thanks
    12
    Thanked 0 Times in 0 Posts

    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!

  • #2
    Regular Coder
    Join Date
    Aug 2002
    Location
    San Francisco
    Posts
    455
    Thanks
    19
    Thanked 15 Times in 15 Posts
    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

  • #3
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,957
    Thanks
    9
    Thanked 727 Times in 721 Posts
    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.

  • #4
    New Coder
    Join Date
    Oct 2010
    Location
    India
    Posts
    11
    Thanks
    0
    Thanked 0 Times in 0 Posts
    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...

  • #5
    Senior Coder
    Join Date
    Feb 2009
    Location
    Ilkley, West Yorkshire, UK
    Posts
    2,957
    Thanks
    9
    Thanked 727 Times in 721 Posts
    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.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •