Forum Moderators: not2easy
<style type="text/css">
/*Tab 1*/
#tabhq #tab1 {
width: 100px;
height:35px;
position: absolute;
top: -6px;
left: 50px;
z-index:10;
}
/*Tab 2*/
#tabhq #tab2 {
width: 100px;
height:35px;
position: absolute;
top: -6px;
left: 137px;
z-index:9;
}
/*Tab 3*/
#tabhq #tab3 {
width: 100px;
height:35px;
position: absolute;
top: -6px;
left: 224px;
z-index:8;
}
/*left image of tab*/
#tabhq .left {
background: url('tabs/normalleft.png') transparent;
width: 15px;
height: 30px;
}
/*center image of tab*/
#tabhq .center {
background: url('tabs/normalcenter.png') transparent;
width: 70px;
text-align: center;
line-height:35px;
font-family: Helvetica, Arial, Verdana, 'Century Schoolbook L', 'URW Bookman L';
font-size:15px;
color: #171;
height: 30px;
position:relative;
left:15px;
top:-30px;
}
/*right image of tab*/
#tabhq .right {
background: url('tabs/normalright.png') transparent;
width: 15px;
height: 30px;
position:relative;
left:85px;
top:-60px;
}
/*hover left image of tab*/
#tabhq div:hover .left {
background: url('tabs/hoverleft.png') transparent;
}
/*hover center image of tab*/
#tabhq div:hover .center {
background: url('tabs/hovercenter.png') transparent;
font-weight:bold;
line-height: 36px;
}
/*hover right image of tab*/
#tabhq div:hover .right {
background: url('tabs/hoverright.png') transparent;
}
/*active left image of tab*/
#tabhq .active .left, #tabhq .active:hover .left {
background: url('tabs/activeleft.png') transparent;
}
/*active center image of tab*/
#tabhq .active .center, #tabhq .active:hover .center {
background: url('tabs/activecenter.png') transparent;
}
/*active right image of tab*/
#tabhq .active .right, #tabhq .active:hover .right {
background: url('tabs/activeright.png') transparent;
}
/*active status of tab*/
#tabhq .active {
z-index:45;
}
</style>
<div id="tabhq">
<div id="tab1" class="<?php if ($activeTab=='1') echo 'active'; ?>">
<div class="left"> </div>
<div class="center"><a href="test1.php?atab=1"> Home </a></div>
<div class="right"> </div>
</div>
<div id="tab2" class="<?php if ($activeTab=='2') echo 'active'; ?>">
<div class="left"> </div>
<div class="center"><a href="test1.php?atab=2"> My Blog </a></div>
<div class="right"> </div>
</div>
<div id="tab3" class="<?php if ($activeTab=='3') echo 'active'; ?>">
<div class="left"> </div>
<div class="center"><a href="test1.php?atab=3"> Forum </a></div>
<div class="right"> </div>
</div>