as111, у div нет атрибута height, используйте style="height: ___px".
Высота родительского блока известна?
Код:<!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; } ****html,body{ height: 100%; } ****#main{ height: 100%; background: #f2f2f2; } ****html>body #main{ height: auto; min-height: 100%; } ****#header, #footer{ position: relative; height: 20px; background: #ccc; } ****#footer{ margin-top: -20px; } ****#content{ padding-bottom: 20px; } ****/*]]>*/ ****</style> </head> **** <body> ****<div id="main"> *<div id="header">Header</div> *<div id="content">Main</div> ****</div> ****<div id="footer">Footer</div> </body> </html>


					
					
					
						