I have just converted a site to all CSS, made several changes to it thanks to the nice folks in the Site Review area, but have one thing I have not been able to solve. I hope you CSS gurus can help me out.
I want the site banner and navigation to center in the header area. I have gotten the banner image to center, but getting the navigation to center is eluding me and I have tried just about everything, I think.
Here is the applicable CSS:
And here is the html:Code:.topmenu { padding: 10px 0px 10px 0px; border-top: 6px double #DEEEDC; border-bottom: none; } .menu { text-align: center; } #topcontainer { padding: 5px 5px 10px 5px; margin-bottom: 0px; } #header { width:100%; margin: 2px 20px 2px 20px; background:#293B2A; font-size:93%; line-height:normal; } #header ul { margin: 0px auto; padding:10px 5px; list-style:none; } #header li { float:left; background:url("graphics/navbk_a.gif") no-repeat right top; margin: 0px auto; padding:0; } #header a { display:block; background:url("graphics/navbk_a.gif") no-repeat right top; color: #DEEEDC; border-top: thin solid #527654; border-bottom: thin solid #DEEEDC; font-weight: bold; text-decoration: none; padding:5px 10px; } #header a:hover { display:block; background: #FFCE63; border-top: thin solid #527654; border-bottom: thin solid #527654; color: #293B2A; font-weight: bold; text-decoration: none; padding:5px 10px; }
The site itself is here so you can see how it is behaving now.Code:<div id="topcontainer"> <div id="header" class="topmenu menu"> <img src="graphics/cabinbanner_a.jpg" width="622" height="100" alt="Secluded beauty in the heart of Colorado's Rocky Mountains"> <ul> <li> <a href="index.html" title="Welcome">Welcome</a> </li> <li> <a href="location.html" title="Location & Driving information">Location</a> </li> <li> <a href="tour.html" title="Photo tour of cabin">Cabin Tour</a> </li> <li> <a href="amenities.html" title="Amenities">Amenities</a> </li> <li> <a href="nearby.html" title="Nearby Activities">Nearby Fun!</a> </li> <li> <a href="rental.html" title="Rental Information">Rental Information</a> </li> <li> <a href="contact.html" title="Contact Information">Contact</a> </li> </ul> </div> </div>
Thanks in advance.







Bookmarks