Hi Guys,
Could you help me out here? Take a look at the site I knocked together http://www.herrlip.com
I am trying to get this CSS Nav bar to sit plum in the center of the page, I can move it to the right however when I chose center or middle in the code it goes down the page instead of across. Code below:
#navcontainer
{
margin: 0;
padding: 0 0 0 12px;
}
#navcontainer UL
{
list-style: none;
margin: 0;
padding: 0;
border: none;
}
#navcontainer LI
{
display: block;
margin: 0;
padding: 0;
float: left; TRIED CHANGING THIS PART HERE TO "MIDDLE" OR "CENTER"
width: auto;
}
#navcontainer A
{
color: #444;
display: block;
width: auto;
text-decoration: none;
background: #DDDDDD;
margin: 0;
padding: 2px 10px;
border-left: 1px solid #fff;
border-top: 1px solid #fff;
border-right: 1px solid #aaa;
}
#navcontainer A:hover, #navcontainer A:active { background: #BBBBBB; }
#navcontainer A.active:link, #navcontainer A.active:visited
{
position: relative;
z-index: 102;
background: #BBBBBB;
font-weight: bold;
}
Any help would be very useful
Jamie


Reply With Quote
Bookmarks