Menu outside container / Background image vertical stretch -
i've been trying fix of weekend, can't seem right, basics of website complete, 2 things:
the ul.nav fits of buttons, however, 10-15 pixel area sticking out left. out of ul.nav. (i'm using ms expression web 4, it's marked diagonal red lines. prevents menu align correctly, , worse, causes 1 menu button drop below others when viewing site in 1024*768. :-(
the background picture container div (called "div" in code) not stretch vertically, repeats itself. creates annoying lines way. there way make stretch?
many advice. code included below.
the html:
<body> <div id="container"> <div id="masthead" class="masthead" onclick="window.location.href='index.html'"; style="cursor:pointer"></div> <div id="top-nav" > <ul class="nav"> <li><a href="#"> europe </a></li> <li><a href="contentna.html"> n. america </a></li> <li><a href="#"> s. america </a></li> <li><a href="#"> asia </a></li> <li><a href="#"> africa </a></li> <li><a href="#"> australia </a></li> <li><a href="#"> misc </a></li></ul> </div> <br /> <br /> <div id="message"> <br clear="all" /> </div> </body> </html>
the css
body { background-size: 100% 100%; background-position: center center; font-family: sans-serif; font-size: medium; font-weight: normal; font-style: normal; font-variant: normal; background-color: #ffffff; padding: 0px; margin: 0px; body: ; background-image: url('bg_mp.jpg'); background-repeat: no-repeat; background-attachment: fixed; } div { border-radius: 15px; border-width: 5px; border-style: none; width: 70%; margin: 50px auto 10px auto; padding: 10px; background-image: url('parchment.jpg'); background-size: 100%; left: auto; right: auto; } #masthead { border-radius: 15px; background: transparent; height: 220px; width: 650px; background-image: url('masthead.jpg'); background-repeat: no-repeat; } #top-nav { height: 71px; background : transparent; list-style : none; margin-top : 7px; margin-bottom : 11px; background-repeat: no-repeat; text-align: center; } ul.nav { border-radius: 15px; background : transparent; height : 57px; line-height : 31px; list-style : none; font-size : 14px; font-weight: bolder; display: inline-block } ul.nav li { display : inline; padding : 0; background : transparent; } ul.nav { font: 100%; background: transparent; height : 30px; font-size : 12px; color: #000000; float : left; padding: 11px 8px 11px 8px; text-decoration : none; border-top: 1px solid #252525; border-bottom : 4px solid #252525; border-left : 1px solid transparent; border-right : 1px solid transparent; border-radius : 4px; -moz-border-radius : 4px; -webkit-border-radius: 4px; } ul.nav a:hover { background : #252525; border-top : 1px solid #252525; border-bottom : 4px solid #000; border-left : 1px solid #252525; border-right : 1px solid #252525; color : #fff; padding : 11px 8px 11px 8px; border-radius : 4px; -moz-border-radius : 4px; -webkit-border-radius: 4px; } #message { background: transparent; left: auto; right: auto; text-align: center
}
to fix 10-15px spacing issue, add padding:0;
ul.nav
as repeating background of div, add 2 lines used same thing in body it: add background-repeat: no-repeat; background-attachment: fixed;
div
's css