css - Nav bar does not take up full width of page when zoomed in -
my problem can seen here if zoom 110% or more on browser. (it happens chrome, i'm not sure other browsers).
basically, on right side can see grey sliver of few pixels after 'contact' button when zoom in. i'm assuming because have buttons set there amount of blue area around each word, , gets messed when zoom. wondering if there way keep button-size formatting default fill space when zoomed in. hope makes sense.
html:
<body> <div id="wrapper"> <div id="container"> <nav> <div id="navigation"> <ul> <li><a href="index.html">home</a></li><li><a href="about.html">about</a></li><li><a href="milk.html">milk</a></li><li><a href="farm.html">the farm</a></li><li><a href="contact.html">contact</a></li> </ul> </div> </nav>
css:
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, address, blockquote { margin: 0px; padding: 0px; font-size: 16px/9px; font-style: normal; } html { background-color:#f8f7e4; } #container { width:955px; height:auto; background-color:#d2d2de; margin-left:auto; margin-right:auto; position:relative; } #navigation { white-space: nowrap; } #navigation li { font: 35px arial black; display: inline; white-space: nowrap; } #navigation { padding:9px 35px; background-color:#0080c2; color:#f8f7e4; text-decoration:none; } #navigation a:hover { background-color:#f8f7e4; color:#000; }
additionally, reason zoom problem matters site viewed quite parents' computer, , have sent 125% zoom on chrome.
add background colour div#navigation
#navigation { background-color: #0080c2; }
Comments
Post a Comment