“One thing depraved this fashion comes.”
It was naivety, however after I first got here throughout Flexbox, after which CSS Grid, I had this sense all these positioning properties (align-self, justify-content…) can be out there to make use of on block and inline parts; issues like tables, lists, mounted parts, the whole lot. The workings is perhaps totally different beneath the hood, relying on the reference packing containers, however the syntax and anticipated outcomes can be identical: push to at least one edge, preserve on the heart, unfold round evenly, and many others.
Though that didn’t occur, what if I made one thing of that kind?
For instance, I might take out the soul of an HTML desk and sew it again along with CSS Grid. In different phrases, it reads like a desk, however acts like a grid, permitting me to make use of grid properties. Imagine it or not, some type of this was used prior to now to make tables responsive.
Earlier than I kill off a desk on this article although: there are plenty of benefits to straight-up tables. They supply a clear semantic format that browsers completely perceive and translate for assistive know-how when wanted. There’s even a
On the CSS aspect of issues, there are certainly circumstances the place CSS Grid is important for its intrinsic responsiveness, supply order independence, and positioning. That’s why it’s an indispensable device for layouts. Use that and let HTML tables to do the work of truly displaying tabular information!
However there’s the presentational good thing about desk we must always take into account. Technically,
| I consider it’s a heading adopted by information. Let’s say that’s pseudo-semantic to me, if presentation just isn't the appropriate time period.
That pseudo-semanticism remains to be helpful. It’s the distinction between me having to learn this:
…and this:
Regardless of there being semantic parts for titles, like | and
|
|---|








