2 ms·
There is finally (since September 2023) support for subgrids in all major browsers. This was a much highly requested feature needed if you cannot put grid cells
by jansan 3y ago
There is finally (since September 2023) support for subgrids in all major browsers. This was a much highly requested feature needed if you cannot put grid cells directly into the container, for example a table where each row is a div that contains the cells. Previously you could not apply widths from the table's grid layout to the individual cells, each row needed its own grid layout. Now grid layout can control grand children of the container.
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_layout/Subgrid https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_grid_la...
- chrismorgan 3y agoFor general web content, I would recommend not depending on subgrid until about next September (at which point Safari will have had it for two years and Chromium for one year). Use it as an enhancement, certainly, but make sure the layout is still at least usable if it’s missing.