keelbolt
10-22-2008, 08:39 PM
The Matt Black Tabs CSS has a note against one of the styles:
.mattblacktabs li a:hover, .mattblacktabs li.selected a{
background: red; /*background of tabs for hover state, plus tab with "selected" class assigned to its LI */
}
(I have changed the background colour to 'red' myself)
The class to make the menu bar stay red on the selected page is 'a'
This class assignment presumably makes the tab on the active page the colour red when it is hovered over, and when it sees class 'a' on the active page.
But I don't know how to assign the class to the active / selected page so that the menu bar stays red. Please could someone explain how to do it?
.mattblacktabs li a:hover, .mattblacktabs li.selected a{
background: red; /*background of tabs for hover state, plus tab with "selected" class assigned to its LI */
}
(I have changed the background colour to 'red' myself)
The class to make the menu bar stay red on the selected page is 'a'
This class assignment presumably makes the tab on the active page the colour red when it is hovered over, and when it sees class 'a' on the active page.
But I don't know how to assign the class to the active / selected page so that the menu bar stays red. Please could someone explain how to do it?