Hello, I have this simple xhtml:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" style="height: 100%;">
<head>
</head>
<body style="height: 100%;">
<div style="height: 100%; overflow: auto; background-color: #00f;">
<div style="height: 400px; margin-bottom: 2000px; background-color: #f00;"></div>
</div>
</body>
</html>
It shows two rectangles - but the lower (blue) one doesn't show the 2000px margin. It is only as tall as the window. Why? Or more importantly, how do I make it to show? I can add some dummy text like 'aaa' between those two </div>
</div>
but I don't feel that's the right way of doing it.
Thanks a lot for help!