divs not displaying as a table
- by CoffeeCode
i made a css:
DIV.TableContainer {
display: table;
background-color:Aqua;
}
DIV.TableRow {
display: table-row;
}
DIV.TableCell {
display: table-cell;
}
html page:
<div class="TableContainer">
<div class="TableRow">
<div class="TableCell">
<h4>Left Col</h4>
<p>...</p>
</div>
<div class="TableCell">
<h4>Right Col</h4>
<p>...</p>
</div>
</div>
</div>
but it doesnt display as a table.
have i missed something???