I have a flexbox based layout that I want to look like this:
_______________ | top banner | |---------------| | tabular data | | | |_______________|
With tabular data covering any size is available after the banner.
This works if B is display: block , but not if it is display: table (see http://jsfiddle.net/E4Qbw/ ).
.container { display: -webkit-flex; -webkit-flex-flow: column nowrap; position: absolute; top: 0; bottom: 0; left: 0; right: 0; border: 1px dashed #fc0; } .A { -webkit-flex: 0 1 auto; width: 100%; border: 1px solid red; } .B { width: 100%; -webkit-flex: 1 0 auto; border: 1px solid blue; } <div class="container"> <div class="A"> A </div> <table class="B"> <thead> <tr><th>B</th></tr> </thead> </table> </div>
I also experimented with wrapping a table inside a block container to no avail.
Is there a way to do this with my current table? Or do I need to use some other structure?
source share