tags:

views:

57

answers:

3

Page I'm working with is: http://cloudninetech.com/newsite/site/homepage.html

Notice the tab slider at the bottom. I wish to make the headings text white when the current tab is selected.

I'm not able to do this because I think the color can only be changed by modifying the tabbedContent.js jQuery plugin

Can someone suggest a way to do this?

+1  A: 

Impossible with this plugin, as it creates illusion of tab selection by putting .moving_bg element on top of current tab. It doesn't change tab itself in any way.
Most jquery ui libraries add some custom class (e.g., 'current') to currently selected element, thus allowing you to customize its look through css.

And since your example doesn't work with firefox anyway, I recommend switching to one of more popular ui libraries.

Nikita Rybak
I'm on firefox 3.0.17 and it's working fine..
samwick
@samwick doesn't show on 3.6.10 (no error)
Nikita Rybak
+1  A: 

do this

.tab_item:hover
{
 color:#ffffff;
}
Praveen Prasad
+1, I've not thought of just ignoring plugin completely
Nikita Rybak
That will not stay selected when the mouse leaves the tab.
Kobi
yeah...doesn't stay. but gonna have to do for now. too much time in implementing new tab plugin at this point
samwick
A: 

You'd better use another plugin, for the reasons stated by @Nikita Rybak
jQuery Tools Tabs is highly customisable and still lightweight.

You could still modify the plugin; adding $(this).css({}); in the .mouseover() function should be sufficient

Or add

.tabs .tab_item:hover,
.tabs .tab_item:focus {
  color: white !important;
}

Pseudo :focus is for keyboard users (though the plugin lacks a focus/blur event management, alas).

Felipe Alsacreations