I have exhausted trial & error, google, and the sitepoint search function. I feel that I am missing a page that explains the technique. Or is it even possible to make a unordered list horizontal navigation span an entire width, no matter the content? I don't know if code will be helpful but here it goes:
CSS
Code CSS:.navtop2 { position:relative ; display:block; width:870px ; height:24px ; font-size:11px ; font-weight:bold ; background:transparent url('nav_bg1.gif') repeat-x top left ; font-family:Verdana,Arial,Helvitica,sans-serif ; overflow:hidden ; } .navtop2 ul { margin:0 ; padding:0 ; list-style-type:none ; width:auto ; } .navtop2 ul li { display:block ; float:left ; margin:0 1px 0 0 ; } .navtop2 ul li a { display:block ; float:left ; color:#000000 ; text-decoration:none ; padding:6px 20px 0 20px ; height:24px ; } .navtop2 ul li a:hover, .navtop2 ul li a.current { color:#ffffff ; background:transparent url('images/nav_bg1_hover.gif.gif') repeat-x top left ; } .navtop2 img { float:left ; }
Code HTML4Strict:<div class="navtop2"> <a href="#"><img src="images/top_www.gif" /></a> <ul style="float:left"> <li><a href="" title="">Link 1</a></li> <li><a href="" title="">Link 2</a></li> <li><a href="" title="">Link 3</a></li> <li><a href="" title="">Link 4</a></li> <li><a href="" title="">Link 5</a></li> </ul> </div>
If any of you could point me in the right direction that would be very helpful. Thank you in advance.





Bookmarks