http://zapodaj.net/7ff4c5f95e73.png.html
a np. w firefoxie (i reszcie przeglądarek)
http://zapodaj.net/865eb9bae168.png.html
Jak wymusić aby w ie6 pozycja menu zawsze była na górze strony?
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="styl.css" rel="stylesheet" type="text/css" /> </head> <body> <div id="container"> <div id="menu"> <ul> </ul> </div> <div id="left"> <div id="top-left"> <div class="inner"> <div class="in"> </div> </div> </div> <div id="bottom-left"> <div class="inner"> <div class="in"> </div> </div> </div> </div> <div id="right"> <div id="top-right"> <div class="inner"> <div class="in"> <div id="gallery"> ... </div> </div> </div> </div> <div id="bottom-right"> <div class="inner"> <div class="in"> </div> </div> </div> </div> </div> </body> </html>
css:
@charset "utf-8"; body { font: 100% Verdana, Arial, Helvetica, sans-serif; background: #fff; margin: 0; padding: 0; text-align: center; color: #000000; } #container { width:4000px; margin: 0 auto; text-align: left; / } #left{ float:left; } #top-left{ height:2000px; width:2000px; background: url(images/left-top-gradient.png) repeat-x #8faebc; } #bottom-left{ height:2000px; width:2000px; background: #999; } #right{ float:right; } #top-right{ height:2000px; width:2000px; background: #F00; } #bottom-right{ height:2000px; width:2000px; background: #3C0; } .inner{ position:absolute; margin:60px 0 0 20px; width:980px; background: #fff; } .inner .in{ padding:20px; } #menu{ width:400px; background-color:#666; margin-left:40px; position:absolute;position:fixed; z-index: 50; } li{ list-style:none; float:left; padding:10px 10px 10px 0; } a, a:visited{ text-decoration:none; color:#000; text-transform:uppercase; } a img { border: 0px solid #BBB; padding: 2px; margin: 10px 0 10px 25px; vertical-align: top; }