euphoriastudio
01-05-2008, 09:37 PM
So I'm building this site for a company and I'm having some issues. I would like to use SSI to have just one place that they can go to change the menu for the entire site, but I want to use "shrink-wrapping" tabs. My issue is that i set up the li id so the active page would be highlighted, but I'm not sure how to customize the highlighted tab with the correct page for every page. Does anyone have any ideas?:confused:
css:
#tabs {
float:left;
width:100%;
background:transparent;
font-size:93%;
line-height:normal;
border-bottom:0px solid #FFFFFF;
}
#tabs ul {
margin:0;
padding:10px 10px 0 80px;
list-style:none;
}
#tabs li {
display:inline;
margin:0;
padding:0;
}
#tabs a {
float:left;
background:url("http://euphoriastudio.freehostia.com/tableft.png") no-repeat left top;
margin:0;
padding:0 0 0 13px;
text-decoration:none;
}
#tabs a span {
float:left;
display:block;
background:url("http://euphoriastudio.freehostia.com/tabright.png") no-repeat right top;
padding:5px 15px 4px 6px;
color:#FFFFFF;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
#tabs a span {float:none;}
/* End IE5-Mac hack */
#tabs a:hover {
color:#FFFFFF;
background-position:0% -42px;
}
#tabs a:hover span {
color:#FFFFFF;
background-position:100% -42px;
}
li#current a
{
color:#000000;
background-position:0% -84px;
}
li#current a span
{
color:#000000;
background-position:100% -84px;
}
Nav:
<body>
<div id="Layer1" style="z-index: 1; left: 10px; height: 140px; position: absolute; top: 0px">
<img height="140" src="http://euphoriastudio.freehostia.com/header1.png" width="800" />
</div>
<div id="tabs" style="z-index: 5; left: 0px; position: absolute; top: 109px; height: 31px;">
<ul>
<li><a href="http://euphoriastudio.freehostia.com/tmst.shtml" title="Home"><span>Home</span></a></li>
<li><a href="http://euphoriastudio.freehostia.com/test.shtml" title="FAQ"><span>FAQ</span></a></li>
<li><a href="http://euphoriastudio.freehostia.com/test.shtml" title="Analysis"><span>Analysis</span></a></li>
<li><a href="http://euphoriastudio.freehostia.com/test.shtml" title="Testimonials"><span>Testimonials</span></a></li>
<li><a href="http://euphoriastudio.freehostia.com/test.shtml" title="Contact Us"><span>Contact Us</span></a></li>
</ul>
</div>
css:
#tabs {
float:left;
width:100%;
background:transparent;
font-size:93%;
line-height:normal;
border-bottom:0px solid #FFFFFF;
}
#tabs ul {
margin:0;
padding:10px 10px 0 80px;
list-style:none;
}
#tabs li {
display:inline;
margin:0;
padding:0;
}
#tabs a {
float:left;
background:url("http://euphoriastudio.freehostia.com/tableft.png") no-repeat left top;
margin:0;
padding:0 0 0 13px;
text-decoration:none;
}
#tabs a span {
float:left;
display:block;
background:url("http://euphoriastudio.freehostia.com/tabright.png") no-repeat right top;
padding:5px 15px 4px 6px;
color:#FFFFFF;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
#tabs a span {float:none;}
/* End IE5-Mac hack */
#tabs a:hover {
color:#FFFFFF;
background-position:0% -42px;
}
#tabs a:hover span {
color:#FFFFFF;
background-position:100% -42px;
}
li#current a
{
color:#000000;
background-position:0% -84px;
}
li#current a span
{
color:#000000;
background-position:100% -84px;
}
Nav:
<body>
<div id="Layer1" style="z-index: 1; left: 10px; height: 140px; position: absolute; top: 0px">
<img height="140" src="http://euphoriastudio.freehostia.com/header1.png" width="800" />
</div>
<div id="tabs" style="z-index: 5; left: 0px; position: absolute; top: 109px; height: 31px;">
<ul>
<li><a href="http://euphoriastudio.freehostia.com/tmst.shtml" title="Home"><span>Home</span></a></li>
<li><a href="http://euphoriastudio.freehostia.com/test.shtml" title="FAQ"><span>FAQ</span></a></li>
<li><a href="http://euphoriastudio.freehostia.com/test.shtml" title="Analysis"><span>Analysis</span></a></li>
<li><a href="http://euphoriastudio.freehostia.com/test.shtml" title="Testimonials"><span>Testimonials</span></a></li>
<li><a href="http://euphoriastudio.freehostia.com/test.shtml" title="Contact Us"><span>Contact Us</span></a></li>
</ul>
</div>