This question might be simple, but I cannot find an answer.
I have the following html:
<div>
some text
<div>
<table>
<tr><td>
Test
</tr>
</table>
</div>
</div>
and css:
body,html {
height: 100%;
width: 100%;
margin: 0;
}
table {
height: 100%;
margin: 0 auto;
background: red;
}
How can I stretch the table vertically without change of the height property of div
? I want the table
to have height: 100%
but it does not work because the outer containers do not have a fixed height (as I understand).