Earlier quoted context omitted.
While that would probably work fine for display and layout, but it doesn't work so well with the semantic document model that the web is built on. For example accessibility would suffer greatly unless every "jquery" (using your analogy) out there were to implement its own accessibility. (That's not to say things are absolutely peachy wrt. accessibility these days, but they'd get a lot worse if everybody had to implem…
I think there's a distinction to be made between "web pages" and "web apps". Web pages like news articles and blog posts fit well in the semantic document model of HTML. Web apps extend past this model -- something like DPS would make more sense for them.
CSS Grid – Table layout is back. Be there and be square
71–80 of 280 posts
Re: CSS Grid – Table layout is back. Be there and be square
#72But at least we seem to be moving forward from the abuse of [ed:float]-layouts for grid-systems...
Re: CSS Grid – Table layout is back. Be there and be square
#73Re: CSS Grid – Table layout is back. Be there and be square
#74Earlier quoted context omitted.
That's the problem. This argument was over a decade ago and it's because it's a nightmare to work in tag soup. I still have to deal with tables for layout on mail templates, bloody Outlook, and that extra 2 layers of tag nesting you have to do on every level quickly turns the code into an incomprehensible mess, even with careful indentation. And if you're not very careful with indentation it turns into an utter night…
That's a problem to be sure, but sometimes I wonder if this is much better:
is one of my least favorite things to see in HTML, in particular. No shit it's a container; all HTML tags are containers. HTML5 introduced all these wonderful semantic elements precisely so that we don't have to pollute HyperText documents with thousands of divs.
Also, that "text-center" class drives me to drink :)
Re: CSS Grid – Table layout is back. Be there and be square
#75Earlier quoted context omitted.
What, exactly, is the problem with the tag in the first place? Been a long, long time since I last touched HTML
It's neither flexible nor semantic. Flexibility is what allowed webpages to be "responsive" before media-queries even existed, and semantics is what allows accessibility, search engines, and other html parsing tools ("readability" in Firefox and Safari, ...) to function better. The only advantage it has is that it's old and predictable. That's why it's still used to format emails for instance, it's reliable and works…
Re: CSS Grid – Table layout is back. Be there and be square
#76This is excellent. And with the fast pace of browsers, and the improved habits of users (or automatic updates), it should be available for 95%+ of users within a year (It's in the current Safari Technology Preview, so Safari should get it with the next macOS point update). This is also a good moment to remind people that you don't need Bootstrap and the like as much as you used to. Grids were 90% or the reason people…
> it should be available for 95%+ of users within a year only if you don't have enterprise customers. Those will continue to run IE11 for the foreseeable future as IE11 will remain supported in Windows 10 until 2025. While Microsoft is pushing Edge as an IE replacement, Edge is still lacking features and looks too different from IE for companies to feel comfortable pushing it to their users without retraining them.
We're still supporting IE9... It was a glorious day when we could finally give up on IE8.
Re: CSS Grid – Table layout is back. Be there and be square
#77> Short of taking care of sizing the elements yourself, sadly, you can't have both a vertical and horizontal rhythm by just using flexbox alone. Accompanied by https://developers.google.com/web/updates/images/2017/01/css... I'm pretty familiar with Flex but I simply don't understand and the diagram doesn't help. What does 'rhythm' mean in terms of layout? Taking a guess (which I shouldn't be), I can make https://deve…
OP is likely referring to vertical rhythm in typography: https://zellwk.com/blog/why-vertical-rhythms/
Re: CSS Grid – Table layout is back. Be there and be square
#78Earlier quoted context omitted.
That's the problem. This argument was over a decade ago and it's because it's a nightmare to work in tag soup. I still have to deal with tables for layout on mail templates, bloody Outlook, and that extra 2 layers of tag nesting you have to do on every level quickly turns the code into an incomprehensible mess, even with careful indentation. And if you're not very careful with indentation it turns into an utter night…
That's a problem to be sure, but sometimes I wonder if this is much better:
Parent
Child
Grand Child
Child
Grand Child
Grand Child
Great Grand Child
Great Grand Child
Great Grand Child
Grand Child
Lifted from here: https://codepen.io/chuongdang/pen/lcnsCRe: CSS Grid – Table layout is back. Be there and be square
#79Earlier quoted context omitted.
That's a problem to be sure, but sometimes I wonder if this is much better:
It's not. There were a few arguments against "table layout", some of which apply to hn as well IMNHO. Added tags without semantic value (just as your div-soup above also illustrates). Layout speed (in reality not much of an issue now - and also an issue with deeply nested tags with complex layout). Both are fixed in modern html5 which moves (back) towards simple, semantic, document layout (html-body-article-heading-e…
Honestly, for what I'm doing (a pretty complex web app with an almost desktop-style GUI with a bunch of buttons, text inputs and checkboxes everywhere) a Bootstrap-style div layout gets at least as verbose and messy as a table layout would. I especially hate having to always do HTML comments with class/id names after every so I know what closes what when I'm near the bottom of the file. At least with tables you get instead of .
But of course a div layout is at least partially semantic and mobile/small screen friendly.
In a classic table layout, there's an extra top level element in addition to "body" - the surrounding table.
In practice, any bog-standard div layout today has a at top level which contains nothing but other divs and sets size and positioning for the whole page. This is roughly equal to a , no?
Re: CSS Grid – Table layout is back. Be there and be square
#80Earlier quoted context omitted.
That's the problem. This argument was over a decade ago and it's because it's a nightmare to work in tag soup. I still have to deal with tables for layout on mail templates, bloody Outlook, and that extra 2 layers of tag nesting you have to do on every level quickly turns the code into an incomprehensible mess, even with careful indentation. And if you're not very careful with indentation it turns into an utter night…
That's a problem to be sure, but sometimes I wonder if this is much better:
(But then you'll hit a wall as you try to deal with the containers and subcontainers.)