Results 1 to 3 of 3

Thread: Tabs Content Script - CSS Problem

  1. #1
    Join Date
    Sep 2007
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Tabs Content Script - CSS Problem

    http://www.dynamicdrive.com/dynamici...tabcontent.htm


    Help!

    I am wanting my text to change colors when a tab is selected. The following code works in FF, IE7, Netscape but not in IE6. Does anyone have a clue why IE6 won't change the font color? The image changes, but the font color won't.


    .shadetabs div.selected a{
    background-image: url(../images/gray_03.gif);
    background-repeat:repeat-y;
    background-position: top;
    color:#ED1C24
    }

  2. #2
    Join Date
    Jul 2006
    Location
    just north of Boston, MA
    Posts
    1,806
    Thanks
    13
    Thanked 72 Times in 72 Posts

    Default

    please read http://www.dynamicdrive.com/forums/s...ad.php?t=24866
    and post a link to your site so we can better troubleshoot for you

  3. #3
    Join Date
    Aug 2004
    Posts
    10,143
    Thanks
    3
    Thanked 1,008 Times in 993 Posts
    Blog Entries
    16

    Default

    Did you change the structure of the tabs from a list (LI) to DIVs instead? Because the default CSS for the selected tab should look like this:

    Code:
    .shadetabs li.selected a{ /*selected main tab style */
    background-image: url(shadeactive.gif);
    border-bottom-color: white;
    color: green;
    }
    The line in red would alter the selected tab's color as well.

Bookmarks

Posting Permissions

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