|
||||||||||||||||||||||
|
||||||||||||||||||||||
|
||||||||||||||||||||||
Tab LookWith CodeThatTab you can customize style for the whole tab control and individual tabs. A tab may have different style in normal state, current state and in mouse over state. If a tab has no specified normal style or current or mouse over style it inherits the style from the tab control. Width and height parameters define the size of tab. You may not set these parameters, by default width is 100 px and height is 20px. To specify look for tab control and tabs, use the "css", "csscurr", "cssover", "csshint" and "border" properties, as follows:
where
CSS, CSScurr, CSSover, CSShint Css, csscurr, cssover, csshint parameters let you define CSS classes for a tab control or separate tab. For example:
where "def", "over", "curr", "hint" are names of css-style that can be described in a separate css-file or in the html file.
Note: If you don't set "csshint" parameter "csscurr" will be used as "csshint".Example - css, csscurr, cssover, csshintYou can see an example and complete code here - Css, csscurr, cssover, csshint Example [popup] Border, width and height of a tab can be controled by corresponding parameters border, width, height. For example:
If you wish use background-image CSS parameter for tabs you need use border only for page with hint but not for tabs. In this case use property borderonlyhint, set it in true. This property can be set only for whole tab control.
Example - border, width and heightYou can see an example and complete code here - Border, width, height Example [popup] Layout parameter controls position of tabset within tab control. Possible values for layout are left, top, right and bottom. You can define layout as follows:
Align parameter defines align text within tab. This parameter can be used only for whole tab control. Possible values for align are left, center and right. You can define align as follows:
Example - layout and alignYou can see an example and complete code here - Layout and align Example [popup] |
||||||||||||||||||||||
|
||||||||||||||||||||||
© CodeThat.com, 2003-2008 |
||||||||||||||||||||||