For Internet Explorer 8-10 table-cells with height: 100%; need to wrap table-row with height: 100%; .
Html for IE should look like this:
table > table-row > table-cell
While other browsers will work correctly with
table > table-row or table > table-cell
[edit] I looked at the question again and noticed that you want to set 100% height not for the cells of the table, but for the content inside it.
decision 1 . Thus, for the height of the content, Internet Explorer is associated with the nearest element with a height set in absolute units, for example, pixels, em, if you want to use% height, you may also need to set the height to 100% for all parent elements, this will be html and body. working example
solution 2 : just add
.content { padding-bottom: 9999px; margin-bottom: -9999px; } .elem { overflow: hidden; }
You do not need to set the height in any of the parent elements in this case. working example .
Hope this helps.
Dariusz Sikorski Sep 19 '15 at 19:46 2015-09-19 19:46
source share