PDA

View Full Version : Tab Content Script - tabs different color from the body



konstance
05-24-2006, 08:25 PM
I would like to use a different color (style) for the Active tabs, that is not the same as the body color.

I am using the Tab Content Script:
http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm

You can see the page here:
http://www.digitaltutors.com/store/product.php?productid=19&cat=51&page=1

So, instead of having the tab color as Grey, I'd like to have it in Black with white link.

Thanks in advance for any help!

hebbs01
06-22-2006, 02:50 PM
Hi,

In the ajaxtabs.css make changes to the '.shadetabs li.selected a' for the background, I use an image i.e. background-image: url(topBgSel.gif); so my entire style is:



.shadetabs li.selected a{ /*selected main tab style */
background: white url(topBg.png) top left repeat-x;
border-bottom-color: white;
}

If you make the image a black gif it will work.

Add:

color: white;
to the above will make the selected tab font white.

Regards

Hebbs

ddadmin
06-22-2006, 09:31 PM
Hebb, he's actually referring to a different script :)

Regarding your question, you should be able to set the active tab's colors by editting the CSS:


#tablist li a.current{
background: lightyellow;
}

hebbs01
06-23-2006, 01:38 AM
Hmmmm,

Note to self, get to bed BEFORE midnight, the brain obviously not functioning too well after :rolleyes: