I have a problem in Firefox with table cell and a DIV with overflow auto on it. Here is my markup:
<div id="container">
<div id="category">
<div id="row">
<div id="refine">
<div class="content">
<!-- contains content -->
</div>
</div>
</div>
</div>
</div>
And the CSS:
html, body {
height: 100%;
}
#container {
display: table;
height: 100%;
width: 500px;
max-height: 200px;
}
#category {
display: table;
height: 100%;
width: 100%;
}
#row {
display: table-row;
}
#refine {
display: table-cell;
height: 100%;
}
.content {
float: left;
height: 100%;
width: 100%;
overflow-y: auto;
}
.content p {
float: left;
width: 100%;
}
I've applied a max-height on the container - and all the child elements have 100% height of the container. In the above, .content needs to be scrollable once the content exceeds the max-height of its parent.
In Chrome this works as expected - a scrollbar is displayed on .content. However in Firefox and IE, the table cell simply expands down - it does not seem to respect the max-height setting of the container.
Here is a fiddle to demonstrate the issue: http://jsfiddle.net/LpzEM/6/ (try this in Firefox and Chrome).
By the way I am unable to change the base structure of the site - so it needs to still use display table, etc.
display: tabledirectly inside anotherdisplay: table. Also, I think it wants the overflow to be on the element that has the max-height set. Like this: jsfiddle.net/davidpauljunior/LpzEM/11