3 ms·
It's a lot better now. > I hate CSS...In good old days, I would have used a table In case you didn't know and if it's of any help, CSS has gotten a lot better
by jolmg 6y ago
It's a lot better now.
> I hate CSS...In good old days, I would have used a table
In case you didn't know and if it's of any help, CSS has gotten a lot better compared to e.g. 6 years ago. Today, CSS grids[1][2] and flexbox[3][4] make layouts a lot simpler and are pretty well supported[5][6]. I think you might find using a CSS grid easier than a table for layout.
[1] https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_La...
[2] https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Grids https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layou...
[3] https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexibl...
[4] https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layou...
[5] https://caniuse.com/?search=grid https://caniuse.com/?search=grid
[6] https://caniuse.com/?search=flexbox https://caniuse.com/?search=flexbox
- chacha21 6y agoFunny enough : the main problem of the previous layout derived from a large CSS-overflow of numbers with a large number of digits, that I finally fixed with "word-break:break-all". Considering the topic of the article, large number of digits and overflow were not supposed to be a problem with Chalk :-D