PDA

View Full Version : Tab Content Script alter the text style also?



biggles
02-17-2006, 05:04 PM
the script at:
http://www.dynamicdrive.com/dynamicindex17/tabcontent.htm

how can i get it to change the font from normal to bold on the header tabs as you select them?

Please help!

chinchilla2
02-17-2006, 05:23 PM
Try replacing

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

#tablist li a.current{
background: lightyellow;
font-weight: bold;
}

This would change the font weight in the current clicked on tab.

Also note, the font style in the script is already at a bold 12px Verdana. If you are using the default declarations, you'll have to remove the bold comment from the "#tablist" font area.

biggles
02-17-2006, 05:27 PM
I have tried but it doesn't seem to work like that.

The one that has class="current" stays bold and the clicked one doesn't alter.

Thanks for trying tho.