73pixieGirl
Programmer
I'm going out of my mind...all of the examples I've seen and tried to implement myself do not work. What am I doing wrong? My latest example is from the dynamicdrive.com site...the basic css tab menu. I put the following CSS in it's own file (I've even put it in the head section):
<style type="text/css">
/*Credits: Dynamic Drive CSS Library */
/*URL: */
.basictab{
padding: 3px 0;
margin-left: 0;
font: bold 12px Verdana;
border-bottom: 1px solid gray;
list-style-type: none;
text-align: left; /*set to left, center, or right to align the menu as desired*/
}
.basictab li{
display: inline;
margin: 0;
}
.basictab li a{
text-decoration: none;
padding: 3px 7px;
margin-right: 3px;
border: 1px solid gray;
border-bottom: none;
background-color: #f6ffd5;
color: #2d2b2b;
}
.basictab li a:visited{
color: #2d2b2b;
}
.basictab li a:hover{
background-color: #DBFF6C;
color: black;
}
.basictab li a:active{
color: black;
}
.basictab li.selected a{ /*selected tab effect*/
position: relative;
top: 1px;
padding-top: 4px;
background-color: #DBFF6C;
color: black;
}
</style>
and then I put the following in a simple table linking to the css page:
<LINK REL="StyleSheet" HREF="css/master.css" TYPE="text/css"/>
<table>
<tr><td>
<ul class="basictab">
<li><a href="index.html">Home</a></li>
<li><a href="index.html">DHTML</a></li>
<li class="selected"><a href="index.html">CSS</a></li>
<li><a href="index.html">Forums</a></li>
<li><a href="index.html">Gif Optimizer</a></li>
<li><a href="index.html">Button Maker</a></li>
</ul>
</td></tr>
</table>
The tabs are not being highlighted after clicking on the links. Does this example only work if you have multiple pages? That's the only thing I can think of... Any ideas?
<style type="text/css">
/*Credits: Dynamic Drive CSS Library */
/*URL: */
.basictab{
padding: 3px 0;
margin-left: 0;
font: bold 12px Verdana;
border-bottom: 1px solid gray;
list-style-type: none;
text-align: left; /*set to left, center, or right to align the menu as desired*/
}
.basictab li{
display: inline;
margin: 0;
}
.basictab li a{
text-decoration: none;
padding: 3px 7px;
margin-right: 3px;
border: 1px solid gray;
border-bottom: none;
background-color: #f6ffd5;
color: #2d2b2b;
}
.basictab li a:visited{
color: #2d2b2b;
}
.basictab li a:hover{
background-color: #DBFF6C;
color: black;
}
.basictab li a:active{
color: black;
}
.basictab li.selected a{ /*selected tab effect*/
position: relative;
top: 1px;
padding-top: 4px;
background-color: #DBFF6C;
color: black;
}
</style>
and then I put the following in a simple table linking to the css page:
<LINK REL="StyleSheet" HREF="css/master.css" TYPE="text/css"/>
<table>
<tr><td>
<ul class="basictab">
<li><a href="index.html">Home</a></li>
<li><a href="index.html">DHTML</a></li>
<li class="selected"><a href="index.html">CSS</a></li>
<li><a href="index.html">Forums</a></li>
<li><a href="index.html">Gif Optimizer</a></li>
<li><a href="index.html">Button Maker</a></li>
</ul>
</td></tr>
</table>
The tabs are not being highlighted after clicking on the links. Does this example only work if you have multiple pages? That's the only thing I can think of... Any ideas?