Hi there. I'm currently using Eric Meyer's tabbed navbar and would like to center it in the page. I'm not sure how to do it.
Thanks in advance for your help.
Here's the link to his code
<!-- m --><a class="postlink" href="http://css.maxdesign.com.au/listamatic/horizontal05.htm">http://css.maxdesign.com.au/listamatic/horizontal05.htm</a><!-- m -->
I'll add it here as well.
#navlist
{
padding: 3px 0;
margin-left: 0;
border-bottom: 1px solid #778;
font: bold 12px Verdana, sans-serif;
}
#navlist li
{
list-style: none;
margin: 0;
display: inline;
}
#navlist li a
{
padding: 3px 0.5em;
margin-left: 3px;
border: 1px solid #778;
border-bottom: none;
background: #DDE;
text-decoration: none;
}
#navlist li a:link { color: #448; }
#navlist li a:visited { color: #667; }
#navlist li a:hover
{
color: #000;
background: #AAE;
border-color: #227;
}
#navlist li a#current
{
background: white;
border-bottom: 1px solid white;
}Go figure. After spending quite sometime messing with it I finally ask for help and all I had to do is just added this
#navcontainer {
text-align: center;
}
It works now.
Thanks in advance for your help.
Here's the link to his code
<!-- m --><a class="postlink" href="http://css.maxdesign.com.au/listamatic/horizontal05.htm">http://css.maxdesign.com.au/listamatic/horizontal05.htm</a><!-- m -->
I'll add it here as well.
#navlist
{
padding: 3px 0;
margin-left: 0;
border-bottom: 1px solid #778;
font: bold 12px Verdana, sans-serif;
}
#navlist li
{
list-style: none;
margin: 0;
display: inline;
}
#navlist li a
{
padding: 3px 0.5em;
margin-left: 3px;
border: 1px solid #778;
border-bottom: none;
background: #DDE;
text-decoration: none;
}
#navlist li a:link { color: #448; }
#navlist li a:visited { color: #667; }
#navlist li a:hover
{
color: #000;
background: #AAE;
border-color: #227;
}
#navlist li a#current
{
background: white;
border-bottom: 1px solid white;
}Go figure. After spending quite sometime messing with it I finally ask for help and all I had to do is just added this
#navcontainer {
text-align: center;
}
It works now.