Hacker Newsnew | comments | show | ask | jobs | submit login

There's nothing wrong with using table for layout. Before calling me old school, let it be known that table can do responsive before even css2 was drafted. Also the rendering compatibility of table still looks pixel perfect now as how it was written in 1999.



Tables are anything but responsive. Responsiveness is not about fluidly changing the width of elements. You can't for example change 3 column layout to 1 column with tables.

The only viable use of tables for layout is when you need to center something vertically. Even then it's better to skip using the tag and apply display: table; and display: table-cell; to respective elements.

-----


I sympathise with those using tables for layout considering how unintuitive the box-model is.

-----


I agree. I get chuckle everytime someone complaints about a site using Table layouts on HN, which in itself is built on tables.

However, I find it even worse when people try to recreate a simple table using layers of divs only to represent a series of tabular data. Why take something simple and make it very complex, unmanageable and less cross compatible?

-----


Considering the fact that noone cares about semantics anymore (websites are not documents anymore, but software, just read every other thread which concludes that Javascript is mandatory nowadays) I'd say tables are perfectly fine.

-----




Guidelines | FAQ | Support | API | Security | Lists | Bookmarklet | DMCA | Apply to YC | Contact

Search: