To grid or not to grid
Publikováno: 20.8.2020
Sarah Higley does accessibility work and finds that“tables and grids are over-represented in accessibility bugs.”
The drum has been banged a million times: don’t use a <table> for layout. But what goes around comes around. What’s the the #1 item in a list of “some of the ways tables and grids can go wrong”?
Using a grid when a table is needed, or vice versa
The day has come. CSS grid has dug its way into usage so deeply … Read article “To grid or not to grid”
The post To grid or not to grid appeared first on CSS-Tricks.
You can support CSS-Tricks by being an MVP Supporter.
Sarah Higley does accessibility work and finds that“tables and grids are over-represented in accessibility bugs.”
The drum has been banged a million times: don’t use a <table> for layout. But what goes around comes around. What’s the the #1 item in a list of “some of the ways tables and grids can go wrong”?
Using a grid when a table is needed, or vice versa
The day has come. CSS grid has dug its way into usage so deeply that developers are using it by default instead of using a classic <table>
. And we don’t even have flying cars yet!
Sarah shows clear examples of both techniques and how the same information can be presented in different ways both visually and semantically. For example, a list of upcoming concerts can be displayed as a <table>
, and that might be fine if you can imagine the purpose of the table being used for sorting or comparing, but it can also be presented as a grid, which has other advantages, like headers that are easier to skim.
Direct Link to Article — Permalink
The post To grid or not to grid appeared first on CSS-Tricks.
You can support CSS-Tricks by being an MVP Supporter.