Why does height 100% work when DOCTYPE is removed?
CSS height property, percentage values & DOCTYPE The first part of your question asking how to apply a 100% height to your div has been answered several times by others. Essentially, declare a height on the root element: html { height: 100%; } A complete explanation can be found here: Working with the CSS height … Read more