4 ms·
Sure, can you whip up an easy 3 column layout for me using the parts of CSS that are fully standardized? CSS does a lot of things really well, but makes some c
by jandrese 8y ago
Sure, can you whip up an easy 3 column layout for me using the parts of CSS that are fully standardized?
CSS does a lot of things really well, but makes some common tasks way more difficult than they need to be.
- house9-2 8y ago<table> <tr> <td></td> <td></td> <td></td> </tr> </table> Sorry, I couldn't resist
- deleted 8y ago[deleted]
- dillondoyle 8y ago<style> table td {width:33.3333%;float:left;padding:10px;box-sizing:border-box;margin:0;display:block;border: none;border-collapse: inherit;border-spacing: 0;} table {width:100%} </style> lol
- davidjnelson 8y agoThis is pretty contrived but it took less than 10 minutes and required 0 googling: https://jsbin.com/nedesuvozo/edit?html,output https://jsbin.com/nedesuvozo/edit?html,output The important two css classes: .Example--outer-container { display: flex; flex-direction: row; } .Example-three-column-inner-container { width: 33.333%; } Browser support: https://caniuse.com/#feat=flexbox https://caniuse.com/#feat=flexbox