PDA

View Full Version : Tabs Content Script - CSS Problem



bspurlock
10-01-2007, 05:11 PM
http://www.dynamicdrive.com/dynamicindex17/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
}

boogyman
10-01-2007, 05:21 PM
please read http://www.dynamicdrive.com/forums/showthread.php?t=24866
and post a link to your site so we can better troubleshoot for you

ddadmin
10-02-2007, 06:02 AM
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:


.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.