Код не работает (щели между дивами) только в недобраузєре.
| Код | <!--[if !IE]> <html> <![endif]--> <!--[if lte IE 9]> <html class="IE"> <![endif]-->
<head> <title>504</title> <link rel="stylesheet" type="text/css" href="style.css" /> </head>
<body>
<div id="wrapper"> <div id="header"> </div> <div id="left"> </div> <div id="right"> </div> <div id="content"> </div> <div id="hFooter"> </div> </div>
<div id="footer"> </div>
</body> </html>
|
| Код | html, body{ margin: 0; width: 100%; height: 100%; } #wrapper{ min-height: 100%; background: red; position: relative; soutline: 1px solid black; } .IE #wrapper{ height: 100%; /*for IE it seems that ;) */ } #header{ background: blue; position: relative; height: 100px; } #left{ background: green; float: left; width: 20%; height: 100px; sdisplay: inline; } #content{ background: silver; width: auto; margin: 0 20%; height: 700px; spadding: 1%; word-wrap: break-word; } #right{ background: navy; float: right; width: 20%; height: 900px; sdisplay: inline; } #hFooter{ sbackground: white; height: 50px; clear: both; } #footer{ background: orange; height: 50px; margin-top: -50px; position: relative; }
|
|