Applying a custom theme to the tabs
In the next example, we can see how to change the tabs' basic appearance. We can override any rules used purely for display purposes with our own style rules for quick and easy customization, without changing the rules related to the tab functionality or structure.
In a new file in your text editor, create the following very small stylesheet:
#myTabs { min-width: 400px; padding: 5px; border: 1px solid #636363; background: #c2c2c2 none; } .ui-widget-header { border: 0; background: #c2c2c2 none; font-family: Georgia; } #myTabs .ui-widget-content { border: 1px solid #aaa; background: #fff none; font-size: 80%; } .ui-state-default, .ui-widget-content .ui-state-default { border: 1px solid #636363; background: #a2a2a2 none; } .ui-state-active, .ui-widget-content .ui-state-active { border: 1px solid #aaa; background: #fff none; }
This is all we need. Save the file as tabsTheme.css
in your css
folder. If you compare the class names with the tables on the previous...