The problem is that the hover state shows a light grey background but the active state is just like the unselected tabs. We want the the active state to be like the hover state.
It’s clear that the CSS is intended to make make the active state like the hover state, but on my site this doesn’t work. The active state fails to select a class in the output for which the background-color property can be set.
I got this working last night by changing the CSS code for the active state of the tab:
The original code is:
.ui-tabs ul.ui-tabs-nav li a:hover,
.ui-tabs ul.ui-tabs-nav li.ui-tabs-selected a {
background-color: #f5f5f5;
color: #333;
But “.ui-tabs-selected” doesn’t seem to point to any CSS class in the widget output. By inspecting the plugin on the rendered page I was able to identify the class “.ui-tabs-active”, which does work. My working CSS code is now:
.ui-tabs ul.ui-tabs-nav li a:hover,
.ui-tabs ul.ui-tabs-nav li.ui-tabs-active a {
background-color: #f5f5f5;
color: #333;
But I have one further question. The selected tab shows a dotted border around it. This is distracting and superfluous, since the widget now shows the selected tab by the color of the background. A border around the tab is overkill and is inconsistent with the rest of my site design. I tried to undo the border through CSS but failed:
.ui-tabs ul.ui-tabs-nav li a:hover,
.ui-tabs ul.ui-tabs-nav li.ui-tabs-active a {
background-color: #f5f5f5;
color: #333;
border: none;
Setting the border property to “none” does not work. I still get the border. Any ideas for how to remove it?