alexsmith0913
New Member
First of all, this is my first post, so take it easy on me if I do something wrong
Onto the problem...
I'm trying to center my CSS navigation menu. I'm probably making a completely moronic mistake, but I've been trying to figure this out for quite some time now to no avail. I've managed to ALMOST do it, but there's something wrong, and it's probably something minor.
(Please excuse the sloppy coding; I'm just beginning to design the layout)
HTML:
CSS:
This is the result of my current coding:
If anyone can shed some light on this problem of mine, I would greatly appreciate it! THANKS!
Onto the problem...
I'm trying to center my CSS navigation menu. I'm probably making a completely moronic mistake, but I've been trying to figure this out for quite some time now to no avail. I've managed to ALMOST do it, but there's something wrong, and it's probably something minor.
(Please excuse the sloppy coding; I'm just beginning to design the layout)
HTML:
HTML:
<div id="navigation">
<ul id="navigation">
<li><a href="page1.html" target="_self" title="Home" class="current">Home</a></li>
<li><a href="about.html" target="_self" title="About">About</a></li>
<li><a href="solutions/solutions.html" target="_self" title="Solutions">Solutions</a></li>
<li><a href="clients/clients.html" target="_self" title="Clients">Clients</a></li>
<li><a href="faq/faq.html" target="_self" title="FAQ">FAQ</a></li>
<li><a href="contact/contact.html" target="_self" title="Contact">Contact</a></li>
</ul></div>
<!-- end #navigation -->
CSS:
Code:
}
.twoColLiqRtHdr #navigation {
height: 37px;
background: #FFF url("images/menu-bg-yellow-orig.gif") repeat-x;
font-size: .9em;
font-family: "Lucida Grande", Verdana, sans-serif;
font-weight: bold;
margin-left: 0;
padding: 0;
}
#navigation ul, #navigation ul li {
list-style: none;
margin: 0;
padding: 0;
}
.twoColLiqRtHdr #navigation ul {
height: 37px;
margin: 0;
padding: 0;
text-align: center;
}
.twoColLigRtHdr #navigation ul li {
display: inline-block;
}
.twoColLiqRtHdr #navigation ul li a {
color: #777;
text-decoration: none;
padding: 2px 10px 0px;
height: 37px;
line-height: 200%;
margin: 0;
display: inline-block;
}
.twoColLiqRtHdr #navigation ul li a:hover {
color: #333;
}
.twoColLiqRtHdr #navigation ul li a.current {
color: #CC0A00;
background: #FFF url("images/current-bg-yellow.gif") repeat-x;
padding: 2px 10px 0px;
display: inline-block;
}
/*\*//*/
#navigation ul li a {
display: inline-block;
white-space: nowrap;
width: 1px;
}
#navigation ul {
padding-bottom: 0;
margin-bottom: -1px;
}
/**/
/*\*/
html #navigation ul li a {
padding: 0;
}
/**/
This is the result of my current coding:
If anyone can shed some light on this problem of mine, I would greatly appreciate it! THANKS!