Nandupatel

Create Tab View

Posted in Blogger tutorial by Narendrakumar Patel on 9 January, 2009

1. Login to blogger, go to “Layout >> Edit HTML”
2. Then find this code ]]></b:skin>
3. Insert the below code before ]]></b:skin>

div.TabView div.Tabs
{
height: 24px;
overflow: hidden;
}
div.TabView div.Tabs a
{
float: left;
display: block;
width: 100px; /* Width top main menu – Tab Buttons*/
text-align: center;
height: 24px; /* Height top main menu – Tab Buttons*/
padding-top: 3px;
vertical-align: middle;
border: 2px solid #122B45; /* Top Main menu border color */
border-bottom-width: 0;
text-decoration: none;
font-family: “Times New Roman”, Serif; /* Top main menu font */
font-weight: 900;
color: #122b45; /* Top main menu font color */
}
div.TabView div.Tabs a:hover, div.TabView div.Tabs a.Active
{
background-color: #fff; /* Top main menu background color */
}
div.TabView div.Pages
{
clear: both;
border: 2px solid #6E6E6E; /* Content Border color */
overflow: hidden;
background-color: #fff; /* Content background color */
}
div.TabView div.Pages div.Page
{
height: 100%;
padding: 0px;
overflow: hidden;
}
div.TabView div.Pages div.Page div.Pad
{
padding: 3px 5px;
}

- You can also change color according to your templates.
4. The next step is put the code below before </head>

<script src=’http://gujaratisite.com/blogger/tabview.js’ type=’text/javascript’/>

5. Then “save” it.
6. Go to “Page Elements” menu
7. Chose “Add Page Element” >> “HTML/Javascript” in place where you want to put this tab.
8. Insert this code :

<form action=”tabview.html” method=”get”>
<div class=”TabView” id=”TabView”>
<div class=”Tabs” style=”width: 350px;”>
<a>Tab 1</a>
<a>Tab 2</a>
<a>Tab 3</a>
</div>
<div class=”Pages” style=”width: 300px; height: 250px;”>

<div class=”Page”>
<div class=”Pad”>
Tab 1.1 <br />
Tab 1.2 <br />
Tab 1.3 <br />
</div>
</div>

<div class=”Page”>
<div class=”Pad”>
Tab 2.1 <br />
Tab 2.2 <br />
Tab 2.3 <br />
</div>
</div>

<div class=”Page”>
<div class=”Pad”>
Tab 3.1 <br />
Tab 3.2 <br />
Tab 3.3 <br />
</div>
</div>

</div>
</div>
</form>

<script type=”text/javascript”>
tabview_initialize(‘TabView’);
</script>

9. Don’t Forget to save.

- You can change width and height according to your choice.

Leave a Reply