I am facing an issue with the code (codepen here) that works in normal browsers but not in IE11...
I need the cards to be wrapped within the displayed window vertically, without any horizontal scrolling. https://i.sstatic.net/PnxR9.png
.table {display: table;}
.container {display: flex; flex-wrap: wrap;}
.card {width: 300px; height: 100px; background: green; margin: 2px;}
<div class="table">
<div class="container">
<div class="card">1</div>
<div class="card">2</div>
<div class="card">3</div>
<div class="card">4</div>
<div class="card">5</div>
<div class="card">6</div>
<div class="card">7</div>
<div class="card">8</div>
</div>
</div>
The current layout does not work as expected in IE.
I understand that removing the wrapping "table" will fix the issue, but I am unable to make that change. Therefore, please try to find a solution while keeping the table structure intact...