I'm seeking advice on how to make a div have a minimum height of 100% while also having a margin-top of 15px. My goal is for the div to reach the bottom of the screen without causing scrollbars, but when the content exceeds the screen size, I want it to automatically expand beyond the screen limit and trigger scrollbars. Here's my current code snippet:
<!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">
<head>
<style type="text/css">
body, html{height:100%; margin:0;}
body{background:#AAA}
#main{position:relative; width:970px; margin:0 auto; border:solid 1px #666; background:#FFF; margin-top:15px; min-height:100%;}
</style>
</head>
<body>
<div id="main">
try duplicating this content until it does not fit in the box
</div>
</body>
</html>