Remix.run Logo
sussmannbaka 4 hours ago

Yes and no. <table> layouts were a hack that solved a real problem but came with massive downsides. People didn’t tell you to not use <table> to lay out content because grids are bad (they are quite handy! take a look at Grid Systems by Josef Müller-Brockmann) but because <table> both posed technical and accessibility problems. A layout grid is not a table (or a <table >). A table (with and without <>) comes with attached semantics, hierarchy, reading direction etc. and is extremely rigid, which makes it a bad fit for differing screen sizes.

It’s true that this was a blind spot for a long time and that it was frustrating to not be able to efficiently lay out content in 2D when <table> was just there. But it was the wrong choice then as it is now and it has been baseline available for 8 years now. I hope it won’t take another 8 years until the comparison stops :o)

system2 2 hours ago | parent | next [-]

Try to select a tr / td without pulling your hair.

lelandfe 4 hours ago | parent | prev [-]

> A layout grid is not a table

Ain't it? Rows and columns get you a table.

dwb 2 hours ago | parent [-]

A table is for tabulating data. They have quite different meaning and purpose, even if they share a couple of characteristics.

an hour ago | parent | next [-]
[deleted]
an hour ago | parent | prev | next [-]
[deleted]
lelandfe an hour ago | parent | prev | next [-]

Tabulate means to organize by rows and columns.

Layout grids organize data by rows and columns.

pacifika an hour ago | parent | prev | next [-]

HTML spec couldn’t just have added a grid element?

maqnius 23 minutes ago | parent [-]

CSS grids are for presentation, HTML is for semantics. Ideally they are separated. That's why the use of <center> tag is deprecated.

an hour ago | parent | prev [-]
[deleted]