I am attempting to format a table and , for some reason I cannot figure out, the overflow on the <tbody>
does not work properly (at all):
Using the following CSS:
body,
html {
height: 100%;
margin: 0;
}
.outside {
height: 100%;
display: flex;
flex-flow: column;
background-color: pink;
}
.outside .header,
.outside .footer {
background-color: grey;
font-size: 18px;
color: blue;
}
.content{
flex: 1;
background-color: violet;
}
.data-grid{
table-layout: fixed;
border-collapse: collapse;
}
.data-grid thead{
background-color:lightblue;
}
.data-grid tbody{
height: 100%;
overflow-y:scroll;
}
The table body pushed the footer down and does not show a scroll bar.
I have placed my fiddle here. A little insight would be appreciated.