html, body { height: 100%; } #wrapper { height: auto; min-height: 100%; } #middle { padding-bottom: 400px; } #footer { position: relative; margin-top: -400px; height: 400px; clear:both; }
<body> <div class="wrapper" id="wrapper"> <div id="middle"> ............. </div> </div> <footer id="footer"></footer> </body>
Более подробная информация о текстовых форматах
<code>
<blockcode>
<apache>
<bash>
<css>
<drupal6>
<html5>
<javascript>
<mysql>
<php>
Добавить комментарий