2 ms·
I still use: .mytable{display:table} .myrow{display:table-row} .mycell{display:table-cell;vertical-align:middle;} Simply because it's been the fas
by nkristoffersen 10y ago
I still use:
.mytable{display:table}
.myrow{display:table-row}
.mycell{display:table-cell;vertical-align:middle;}
Simply because it's been the fastest and easiest way for me to vertically align stuff. Plus very backwards compatible. But I think I'm in the minority by not using the flexbox, etc.
- jordanlev 10y agoIf that works for you and your designs, then great! But there are a lot of places where display:table falls apart, especially with responsive designs. Flexbox and Grid also bring a new level of ability to separate source order from display order, which isn't possible using display:table.