I tried the following (described in this question):
<html style="height: 100%">
<body style="min-height: 100%; margin: 0">
<div style="min-height: 100%; background: red">
</div>
</body>
</html>
Without doctype header, it works as expected - div fills the entire screen and expands if needed. But if I add <!DOCTYPE html>
, it stops working. How can I fix this?