5 ms·
So we return to tables ...
by nobbyclark 13y ago
So we return to tables ...
- kirkbackus 13y agoIt may seem like that, but the major difference is the layout is left to the CSS. When combined with css media queries, the grid can provide a complete restructuring of the layout completely independent of the markup which would not would have been possible with tables.
- ahoy 13y agoThis is a hugely important difference.
- SideburnsOfDoom 13y agoGrids are also significantly more flexible and more responsive than tables. You finally get reliable vertical centering of elements as a side-benefit. Tables got a very bad name because they were abused back when they were the only thing available for layout: "if the only tool you have is a hammer..." Yes, but sometimes data is actually tabular. Grids are good for UI layout. The web was just for documents, but not any more. So now we need good ways to lay out UIs.
- chrismonsanto 13y ago> You finally get reliable vertical centering of elements as a side-benefit. Worth noting that you already get this with flexbox's align-items: center, which you can use today!
- jimmcslim 13y agoA comment on the original link stated that 'flexbox is slow', someone responded with a question; 'is the spec inherently slow or just current implementations?' but no-one elaborated.
- coldtea 13y ago>Tables got a very bad name because they were abused back when they were the only thing available for layout: "if the only tool you have is a hammer..." Yes, but sometimes data is actually tabular. Not only that: layouts are actually tabular (grid based) themselves. That's why tables were, even if not created for layout, an untuitive fit for doing layout work.
- camus2 13y agoYep basically.But we were alreday there with .row an .col-md-3, what's the difference between this and a table ? semantics? yeah right. By the way, tables can be made responsive too.
- oneeyedpigeon 13y agoI can't tell if this is 100% sarcasm, 100% serious, or somewhere in-between.
- stevekinney 13y agoThe sad part is that he or she isn't 100% wrong.
- rimantas 13y agoThe good part, that he or she is 100% wrong.
- andybak 13y ago> But we were already there with .row an .col-md-3, what's the difference between this and a table ? semantics? yeah right. I think that's a reasonable position to hold and I'd like to hear more detail of your rebuttal.
- SippinLean 13y agoNot at all. I don't think you understand what's being discussed.
- jebblue 13y agoAt 1:35 he says "you can do all sorts of things you can't do with tables". I think I'll continue learning jQuery Mobile and run on a wide variety of devices and PC's. http://demos.jquerymobile.com/1.3.0-beta.1/docs/content/content-grids-responsive.html# http://demos.jquerymobile.com/1.3.0-beta.1/docs/content/cont...
- zem 13y agotables are a superb layout element. if this css addition makes them "semantically acceptable" to the purist crowd, i'm all for it.
- coldtea 13y agoWe shouldn't have left tables in the first place. Design (including flexible responsive design) is ALL about grids. Since they didn't have them in the early days, the used HTML tables, which weren't designed for that, but have lots of the needed behavior built-in. Then came the idea to use floats, which was a horrible idea. Floats weren't designed for layout either (they were designed to, well, float simple elements, e.g let text flow around an image and such). So designers, instead of abusing tables (which weren't meant for layout, but at least had what was needed), they started abusing floats (which weren't meant for layout AND didn't have what was needed, without ugly hacks and workarounds). Flexbox and the Grid Layout are actual layout systems, designed for that very purpose. Finally.