YUI Library Examples: TabView Control: Skinning TabView

TabView Control: Skinning TabView

This demonstrates how to customize the TabView skin.

Tab One Content

Tab Two Content

Tab Three Content

Customizing TabView Skin

Skinning the YUI TabView widget is done using CSS.

To demonstrate how to customize the default TabView skin, first we'll include the TabView core CSS and TabView skin files, as well as the other TabView dependencies:

Using the skin css file as a reference, we then override the appropriate styles for our custom skin:

Next we will create a <div> called demo and include the TabView markup:

All that is left is to create an instance of TabView from our demo element:

This is a simple example of how to extend the TabView skin.

Copyright © 2007 Yahoo! Inc. All rights reserved.

Privacy Policy - Terms of Service - Copyright Policy - Job Openings