milo3169
Programmer
- May 2, 2007
- 42
Hello,
I am trying to create a Tabbed Navigation using the sliding door technique with pictures. What I want to do is when the tab is active has a different color other than the others. I am able to get it working with one color, but when I try to use the second color (picture) I can't get it to work. Only the left tab picture works, but the right side tab is not showing up. I can't seem to figure out how to call the UL in the list when it is active. Can someone help?
HTML Code
Thank You in advance
I am trying to create a Tabbed Navigation using the sliding door technique with pictures. What I want to do is when the tab is active has a different color other than the others. I am able to get it working with one color, but when I try to use the second color (picture) I can't get it to work. Only the left tab picture works, but the right side tab is not showing up. I can't seem to figure out how to call the UL in the list when it is active. Can someone help?
Code:
<style type="text/css">
ul{
margin: 0;
padding: 0;
list-style: none;
width: 720px;
float: left;
}
ul li {
float: left;
background: url(righttab_tan.gif) no-repeat top right;
margin-right: 0;
}
li a{
display: block;
padding: 0 1em;
line-height: 2.5em;
background: url(lefttab_tan.gif) no-repeat top left;
color: #333333;
float: left;
font-family: tahoma;
font-size: 10pt;
font-weight: normal;
border-bottom: 1px solid #CC0000;
}
ul a:active{
float: left;
background: url(righttab_grn.gif) no-repeat top right;
margin-right: 0;
}
li a:active{
display: block;
padding: 0 1em;
line-height: 2.5em;
background: url(lefttab_grn.gif) no-repeat top left;
color: #333333;
float: left;
font-family: tahoma;
font-size: 10pt;
font-weight: normal;
border-bottom: 1px solid #CC0000;
}
ul a:hover{
color: #CC0000;
}
</style>
HTML Code
Code:
<ul>
<li><a href="#">Tab 1</a></li>
<li><a href="#">Tab 2</a></li>
<li><a href="#">Tab 3</a></li>
<li><a href="#">Tab4</a></li>
<li><a href="#">Tab 5</a></li>
<li><a href="#">Tab 6</a></li>
</ul>
Thank You in advance