3 ms·
I still remember a time where CSS pundits claimed that the box model was "simple" and if you didn't understand how to make a layout with "float" you were an idi
by throw_m239339 4y ago
I still remember a time where CSS pundits claimed that the box model was "simple" and if you didn't understand how to make a layout with "float" you were an idiot.
There is a reason why people resorted to tables at the time, because tables were simple to reason about. Grids are kind of tables 2.0 and that float stuff was never good nor simple. So F. you to all the people all these years that claimed there was nothing wrong with CSS, float layouts were a hack and it was bad.
CSS is now actually much much simpler than it used to be, all you need to know as a developer is basically flexbox and/or grids to make beautiful layouts.
CSS can succeed where the DOM failed: CSS can become a great tool that makes using CSS frameworks _unnecessary_, it just needs some kind of module system for scoped CSS rules, which AFAIK doesn't exist in the spec yet.