as111, смысл тот же.
Код:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ru">
<head>
****<title></title>
****<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
****<style type="text/css">
****/*<![CDATA[*/
*****{ margin: 0; padding: 0; }
****#main{ height: 400px; background: #f2f2f2; }
****#header, #footer{ position: relative; height: 50px; background: #ccc; }
****#header{ margin-bottom: -50px; }
****#footer{ margin-top: -50px; }
****#content{ padding: 50px 0; }
****/*]]>*/
****</style>
</head>
****
<body>
****<div id="header">Header</div>
****<div id="main">
*<div id="content">Main</div>
****</div>
****<div id="footer">Footer</div>
</body>
</html>
Либо вариант DareDevil'a +
Код:
* html #container{height: 1px;}