Hacker News new | ask | show | jobs
by chacha21 1903 days ago
I hate CSS, I will have to spend hours trying to figure out that. In good old days, I would have used a table or an iframe, but that's bad practice I guess.
1 comments

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_La...

[2] https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layou...

[3] https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexibl...

[4] https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layou...

[5] https://caniuse.com/?search=grid

[6] https://caniuse.com/?search=flexbox

Funny 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