<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <!--[if lt IE 7]> <html class="ie ie6 lte9 lte8 lte7" xmlns="http://www.w3.org/1999/xhtml"> <![endif]--> <!--[if IE 7]> <html class="ie ie7 lte9 lte8 lte7" xmlns="http://www.w3.org/1999/xhtml"> <![endif]--> <!--[if IE 8]> <html class="ie ie8 lte9 lte8" xmlns="http://www.w3.org/1999/xhtml"> <![endif]--> <!--[if IE 9]> <html class="ie ie9 lte9" xmlns="http://www.w3.org/1999/xhtml"> <![endif]--> <!--[if gt IE 9]> <html xmlns="http://www.w3.org/1999/xhtml"> <![endif]--> <!--[if !IE]><!--> <html class="no-ie" xmlns="http://www.w3.org/1999/xhtml"> <!--<![endif]--> <head> <meta http-equiv="X-UA-Compatible" content="IE=7"/> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> <style type="text/css"> @charset "utf-8"; /* CSS Document */ html, body, div, ul, ol, li, h1, h2, h3, h4, h5, h6, dd, dt, dl, table, tr, td, th, p, span, strong, small, a, img, form { margin: 0px; padding: 0px; } /*html, body { height: 100%; margin: 0; } .wrapper, .table { display: table; height: 100%; width: 100%; } .content, .tr { display: table-row; height: 100%; } .footer { display: table-row; } .tbody {display: table-row-group;} .thead {display: table-header-group;}*/ html, body { height: 100%; margin: 0; } .wrapper { display: table; height: 100%; width: 100%; background: yellow; } .content { display: table-row; /* height is dynamic, and will expand as content is added (won't scroll) */ height: 100%; background: turquoise; } .footer { display: table-row; background: lightgray; } </style> <title>Документ без названия</title> </head> <body> <div class="wrapper"> <div class="content"> <h2>Content</h2> </div> <div class="footer"> <h3>Sticky footer</h3> <p>Footer of variable height</p> </div> </div> <!--<div class="wrapper"> <div class="content"> <div class="table"> <div class="tbody"> <div class="tr"> <h2>Content</h2> <p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p> </div> </div> <div class="thead"> <div class="tr">this is header!</div> </div> </div> </div> <div class="footer"> <h3>Sticky footer</h3> <p>Footer of variable height</p> </div> </div>--> </body> </html>