A common Layout gotcha is when a newcomer to the layout method wonders how to style a cell which doesn’t contain any . In the current Level 1 specification, this isn’t possible since there is no way to target an Grid Cell or Grid Area and apply styling. This means that to apply styling, you need to insert an element.
In this article, I am going to take a look at how to use CSS Content to achieve styling of empty without adding redundant empty elements and show some use cases where this technique makes sense.

Source link
thanks you RSS link
( https://www.smashingmagazine.com//02/generated-content-grid-layout/)


Please enter your comment!
Please enter your name here