Re:Ten modern layouts in one line of CSS
by noman-land on Thursday July 30, 2020 @08:50PM
(#24004518)
These are pretty amazing. Not quite one line but very concise nonetheless. I never mess with grid. I use flex regularly though.
[ Parent
| on HN ]
Until you actually try them yourself in various browsers (and versions) with dynamically sized content of the elements inside those layouts and see that it is still buggy and not that much has changed and it still needs insane amount of hacks to make the layout work reliable across browsers.
EDIT: The common example when grid and flexbox layouts break is when a child of a child element in the layout overflows.
Re:Ten modern layouts in one line of CSS
by jedimastert on Friday July 31, 2020 @10:02AM
(#24008661)
Could you set up a little example and submit a bug or two?
What are you even talking about?
Sure. Give me a grid or flexbox simple layout and I'll show when it breaks.
Re:Ten modern layouts in one line of CSS
by ta17711771 on Friday July 31, 2020 @01:36AM
(#24006008)
They could be, most of them.
Great article.
I don't think it's really correct to call code a one-liner unless a human being would typically write it as one line of code, which is not the case here.