absolutmgd13
10-07-2007, 12:57 PM
Hey whats up?
Im somewhat new to css and i've got a little bit down. But i need some help with my navigation.
heres my addy:
http://www.matthewdesmond.com
if you look now i just have text links at the top as my nav but im trying to implement css tabs there. here is my code for the tabs that im trying to fit into that area..the height doesnt matter it can be larger, but the with can be no bigger than 809:
css:
img {
border: none;
}
#tabs {
float:left;
width:500px;
background:#E3ECF3;
font-size:93%;
line-height:normal;
}
#tabs ul {
margin:0;
padding:2px;
list-style:none;
}
#tabs li {
display:inline;
margin:0;
padding:0;
}
#tabs a {
float:left;
background:url("../images/nav/tableft5.gif") no-repeat left top;
margin:0;
padding:0 0 0 4px;
text-decoration:none;
}
#tabs a span {
float:left;
display:block;
background:url("../images/nav/tabright5.gif") no-repeat right top;
padding:5px 15px 4px 6px;
color:#FFF;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
#tabs a span {float:none;}
/* End IE5-Mac hack */
#tabs a:hover span {
color:#FFF;
}
#tabs a:hover {
background-position:0% -42px;
}
#tabs a:hover span {
background-position:100% -42px;
}
#tabs2 {
float:left;
width:175px;
background:#E3ECF3;
font-size:93%;
line-height:normal;
}
#tabs2 ul {
margin:0;
padding:2px;
list-style:none;
}
#tabs2 li {
display:inline;
margin:0;
padding:0;
}
#tabs2 a {
float:left;
background:url("../images/nav/tableft5.gif") no-repeat left top;
margin:0;
padding:0 0 0 4px;
text-decoration:none;
}
#tabs2 a span {
float:left;
display:block;
background:url("../images/nav/tabright5.gif") no-repeat right top;
padding:5px 15px 4px 6px;
color:#FFF;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
#tabs2 a span {float:none;}
/* End IE5-Mac hack */
#tabs5 a:hover span {
color:#FFF;
}
#tabs2 a:hover {
background-position:0% -42px;
}
#tabs2 a:hover span {
background-position:100% -42px;
}
div:
<div id="tabs">
<ul>
<li><a href="#" title="home"><span>Home</span></a></li>
<li><a href="#" title="about"><span>About Me</span></a></li>
<li><a href="#" title="services"><span>Services</span></a></li>
<li><a href="#" title="portfolio"><span>Portfolio</span></a></li>
<li><a href="#" title="resume"><span>Resume</span></a></li>
<li><a href="#" title="contact"><span>Contact</span></a></li>
</ul>
</div>
<div id="tabs2">
<ul>
<li><a href="#" title="links"><span>Links</span></a></li>
<li><a href="#" title="news"><span>News</span></a></li>
<li><a href="#" title="search"><span>Search</span></a></li>
</ul>
</div>
i've tried and cant get it to fit in there correctly can anybody help!?
-Matt
Im somewhat new to css and i've got a little bit down. But i need some help with my navigation.
heres my addy:
http://www.matthewdesmond.com
if you look now i just have text links at the top as my nav but im trying to implement css tabs there. here is my code for the tabs that im trying to fit into that area..the height doesnt matter it can be larger, but the with can be no bigger than 809:
css:
img {
border: none;
}
#tabs {
float:left;
width:500px;
background:#E3ECF3;
font-size:93%;
line-height:normal;
}
#tabs ul {
margin:0;
padding:2px;
list-style:none;
}
#tabs li {
display:inline;
margin:0;
padding:0;
}
#tabs a {
float:left;
background:url("../images/nav/tableft5.gif") no-repeat left top;
margin:0;
padding:0 0 0 4px;
text-decoration:none;
}
#tabs a span {
float:left;
display:block;
background:url("../images/nav/tabright5.gif") no-repeat right top;
padding:5px 15px 4px 6px;
color:#FFF;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
#tabs a span {float:none;}
/* End IE5-Mac hack */
#tabs a:hover span {
color:#FFF;
}
#tabs a:hover {
background-position:0% -42px;
}
#tabs a:hover span {
background-position:100% -42px;
}
#tabs2 {
float:left;
width:175px;
background:#E3ECF3;
font-size:93%;
line-height:normal;
}
#tabs2 ul {
margin:0;
padding:2px;
list-style:none;
}
#tabs2 li {
display:inline;
margin:0;
padding:0;
}
#tabs2 a {
float:left;
background:url("../images/nav/tableft5.gif") no-repeat left top;
margin:0;
padding:0 0 0 4px;
text-decoration:none;
}
#tabs2 a span {
float:left;
display:block;
background:url("../images/nav/tabright5.gif") no-repeat right top;
padding:5px 15px 4px 6px;
color:#FFF;
}
/* Commented Backslash Hack hides rule from IE5-Mac \*/
#tabs2 a span {float:none;}
/* End IE5-Mac hack */
#tabs5 a:hover span {
color:#FFF;
}
#tabs2 a:hover {
background-position:0% -42px;
}
#tabs2 a:hover span {
background-position:100% -42px;
}
div:
<div id="tabs">
<ul>
<li><a href="#" title="home"><span>Home</span></a></li>
<li><a href="#" title="about"><span>About Me</span></a></li>
<li><a href="#" title="services"><span>Services</span></a></li>
<li><a href="#" title="portfolio"><span>Portfolio</span></a></li>
<li><a href="#" title="resume"><span>Resume</span></a></li>
<li><a href="#" title="contact"><span>Contact</span></a></li>
</ul>
</div>
<div id="tabs2">
<ul>
<li><a href="#" title="links"><span>Links</span></a></li>
<li><a href="#" title="news"><span>News</span></a></li>
<li><a href="#" title="search"><span>Search</span></a></li>
</ul>
</div>
i've tried and cant get it to fit in there correctly can anybody help!?
-Matt