
The style of vertical tabbox include 4 parts, style of panel, tabs corner, selected tab and non-selected tab.


|
CSS Definition |
Description |
Default Values |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|
CSS Definition |
Description |
Default Values |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

|
CSS Definition |
Description |
Default Values |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|

The way to customize the background and border of a vertical tabbox is declaring the style as following.
1.include style and assign sclass of tabpanels
<style src="~./mytab.css.dsp"/> <tabbox width="400px" orient="vertical"> <tabs width="50px"> <tab label="Tab 1" /> <tab label="Tab 2" /> </tabs> <tabpanels sclass="mytp" height="200px"> <tabpanel >This is panel 1</tabpanel> <tabpanel >This is panel 2 The second panel</tabpanel> </tabpanels> </tabbox>
<%@ page contentType="text/css;charset=UTF-8" %>
<%@ taglib uri="http://www.zkoss.org/dsp/web/core" prefix="c" %>
.mytp {
background-color:#FFEEB6;
border-top:1px solid #FFBB47;
border-bottom:1px solid #FFBB47;
border-right:3px solid #FFBB47;
}

The way to customize the tabs corner of vertical tabbox is declaring the style as following.
1.assign sclass of tabs
<style src="~./mytab.css.dsp"/> <tabbox width="400px" orient="vertical"> <tabs width="50px" sclass="mytabs"> <tab label="Tab 1" /> <tab label="Tab 2" /> </tabs> <tabpanels sclass="mytp" height="200px"> <tabpanel >This is panel 1</tabpanel> <tabpanel >This is panel 2 The second panel</tabpanel> </tabpanels> </tabbox>
.mytabs .tab-v3d-first1{
background-image:url(${c:encodeURL('/tabbox-ver/mytab-first1.gif')});
height:2px;
width:6px;
}
.mytabs .tab-v3d-first2{
background-image:url(${c:encodeURL('/tabbox-ver/mytab-first2.gif')});
height:1px;
width:6px;
}
.mytabs .tab-v3d-last1{
background-image:url(${c:encodeURL('/tabbox-ver/mytab-last1.gif')});
height:1px;
width:6px;
}
.mytabs .tab-v3d-last2{
background-image:url(${c:encodeURL('/tabbox-ver/mytab-last2.gif')});
height:2px;
width:6px;
}
3.Design the image files of above style (mytab-first1.gif, mytab-first2.gif, mytab-last1.gif, mytab-last2.gif). And put these files in the application folder(ex, /tabbox-ver. It depends on you design)

The way to customize the selected of vertical Tabbox is declaring the style as following.
.mytabs
.tab-v3d-tl-sel{
background-image : url(${c:encodeURL('/tabbox-ver/mytab-tl-sel.gif')});
height:5px;
width:5px;
}
.mytabs
.tab-v3d-tm-sel{
background-image : url(${c:encodeURL('/tabbox-ver/mytab-tm-sel.gif')});
height:5px;
}
.mytabs
.tab-v3d-tr-sel{
background-image : url(${c:encodeURL('/tabbox-ver/mytab-tr-sel.gif')});
height:5px;
width:6px;
}
.mytabs
.tab-v3d-ml-sel{
background-image : url(${c:encodeURL('/tabbox-ver/mytab-ml-sel.gif')});
width:5px;
}
.mytabs
.tab-v3d-mm-sel{
background-image : url(${c:encodeURL('/tabbox-ver/mytab-mm-sel.gif')});
}
.mytabs
.tab-v3d-mr-sel{
background-image : url(${c:encodeURL('/tabbox-ver/mytab-mr-sel.gif')});
width:6px;
}
.mytabs
.tab-v3d-bl-sel{
background-image : url(${c:encodeURL('/tabbox-ver/mytab-bl-sel.gif')});
height:5px;
width:5px;
}
.mytabs
.tab-v3d-bm-sel{
background-image : url(${c:encodeURL('/tabbox-ver/mytab-bm-sel.gif')});
height:5px;
}
.mytabs
.tab-v3d-br-sel{
background-image : url(${c:encodeURL('/tabbox-ver/mytab-br-sel.gif')});
height:5px;
width:6px;
}
2.Design the image files of above style. And put these files in the application folder(ex, /tabbox-ver. It depends on you design)

The way to customize the non-selected of Tabbox is declaring the style as following.
.mytabs
.tab-v3d-tl-uns{
background-image : url(${c:encodeURL('/tabbox-ver/mytab-tl-uns.gif')});
height:5px;
width:5px;
}
.mytabs
.tab-v3d-tm-uns{
background-image : url(${c:encodeURL('/tabbox-ver/mytab-tm-uns.gif')});
width:5px;
}
.mytabs
.tab-v3d-tr-uns{
background-image : url(${c:encodeURL('/tabbox-ver/mytab-tr-uns.gif')});
height:5px;
width:6px;
}
.mytabs
.tab-v3d-ml-uns{
background-image : url(${c:encodeURL('/tabbox-ver/mytab-ml-uns.gif')});
width:5px;
}
.mytabs
.tab-v3d-mm-uns{
background-image : url(${c:encodeURL('/tabbox-ver/mytab-mm-uns.gif')});
}
.mytabs
.tab-v3d-mr-uns{
background-image : url(${c:encodeURL('/tabbox-ver/mytab-mr-uns.gif')});
width:6px;
}
.mytabs
.tab-v3d-bl-uns{
background-image : url(${c:encodeURL('/tabbox-ver/mytab-bl-uns.gif')});
height:5px;
width:5px;
}
.mytabs
.tab-v3d-bm-uns{
background-image : url(${c:encodeURL('/tabbox-ver/mytab-bm-uns.gif')});
height:5px;
}
.mytabs
.tab-v3d-br-uns{
background-image : url(${c:encodeURL('/tabbox-ver/mytab-br-uns.gif')});
height:5px;
width:6px;
}
3.Design the image files of above style. And put these files in the application folder(ex, /tabbox-ver. It depends on you design)