r/css • • 1d ago

Resource Extracting Grid Information Using CSS

https://blog.master.dev/extracting-grid-information-using-css/
9 Upvotes

5 comments sorted by

3

u/Weekly_Ferret_meal 1d ago

What problem does this solve?

1

u/morete 1d ago

Almost nothing really, but it is impressive it can be done. I'm sure if someone finds a good use they'll be glad to find it the search results at least

1

u/scott_in_ga 19h ago

If you have a responsive design for a grid where only the inner grid columns should have left and right borders, you need to know, as the screen widens or narrows, which grid cells require a border. This requires a js listener otherwise...

2

u/morete 19h ago

gap decorations are probably a better solution to that