You need to add height to the div. Since you specified the minimum height, IE automatically expands it to the maximum possible. So add height, for example:
.page_login > div { margin:auto; background:#fff; min-height:100px; width:200px; height:200px; }
http://jsfiddle.net/e2yuqtdt/6/
Since this is a flexible box, and therefore intended to be flexible, it is a good idea to increase the height in percent. Thus, the height of the div will be equal to, for example, 50% of the height of the page, if only the page was not less than 200 pixels in height, then it would be 100 pixels high.
Update : Unfortunately, it is not possible for a div to fill the entire page with only CSS. However, this seems to be possible with Javascript, see here Make a div to fill the height of the remaining screen
In fact - reached it with tables divs
http://jsfiddle.net/e2yuqtdt/14/
<div> <div id="div1"> <div id="div2">vertical-align:center; text-align:center</div> </div> </div> #div1 { display:flex; height:100%; width:100%; background:#303030; } #div2 { margin:auto; background:#fff; height:800px; width:200px; }
I know this update happens after elad.chen - but already done it and posted it in the comment below - just didn't get around to updating the question.
source share