2 ms·
CSS has always been confusing to me. Every year there are a new set of "best practices" that seem to only serve to work around how CSS works (hacks, basically).
by kstenerud 7y ago
CSS has always been confusing to me. Every year there are a new set of "best practices" that seem to only serve to work around how CSS works (hacks, basically). Now we have CSS grid, which looks like tables, which were supposed to be bad (although I never understood why).
If CSS can't do the layouts we need without a bunch of hacks and bashing your head against the table, why is it still a thing?
- goto11 7y agoHTML tables were not bad. They are fine when used for their appropriate purpose. Anyway the pure CSS equivalent to tables is display:table, it is not CSS grid. CSS grid behaves quite different from tables. For example CSS grid can adjust the number of columns to the available space. This makes sense for say textual columns but would not make sense for a data table.