Is it possible to create a table layout using display:table, display:table-row and display:table-cell if table-cell is not a direct child of table-row ?
The example below would work if I remove the div with class nestedDiv, in such a way that the col divs are direct children of the row div.
Is this possible without altering the html structure?
section {
display: table;
width: 100%;
}
section .row {
display: table-row;
}
section .col {
display: table-cell;
}
<html>
<head>
</head>
<body>
<section>
<div class="row">
<div class="nestedDiv"> <!-- nested div, this will not work -->
<div class="col">Column A</div>
<div class="col">Column B</div>
<div class="col">Column C</div>
</div>
</div>
<div class="row">
<div class="col">1</div>
<div class="col">2</div>
<div class="col">3</div>
</div>
</section>
</body>
</html>
divin an actualtr