Hi there...
I've searched high and low looking for a solution.
What i'm after is an automatically adjusting horizontal CSS menu that will automatically space each item evenly across the width of the browser, and when resized, without having a fixed width so it does it itself.
I've attached an image, which i made as a mockup to show what i'm trying to acheive...at the moment all that seems to be happening is centered items when i use the following CSS-
Code:#nav{ width:100%; border: 1px solid #FF0000; border-width: 1px 0; text-align:center; margin:0; padding:0; white-space:nowrap; } #nav ul{ width: 100%; list-style:none; margin:0; padding:0; } #nav ul li{ display:inline; list-style:none; margin-right: auto; margin-left: auto; } #nav ul li a{ font-family: Xenophone; text-transform: lowercase; color: #FFFFFF; font-size: 20px; text-decoration: none; } #nav ul li a:hover{ border-bottom: 3px solid #FF0000; margin: 0; padding:0; }Hopefully you understand what i'm trying to get at...if not, give me shout!HTML Code:<div id="nav"> <ul> <li><a href="#" title="Home">Home</a></li> <li><a href="#" title="News">News</a></li> <li><a href="#" title="Blog">Blog</a></li> <li><a href="#" title="Gallery">Gallery</a></li> <li><a href="#" title="Video">Video</a></li> <li><a href="#" title="Live">Live</a></li> <li><a href="#" title="Sign Up">Sign Up</a></li> <li><a href="#" title="Contact">Contact</a></li> </ul> </div>
Also, IE seems to be ignoring the a:hover attribute?
Thanks, Ryan.



Reply With Quote


Bookmarks