If there is a string of text inside the element that has display: grid
it will become a grid item, this anonymous item will participate in the grid layout but otherwise can’t be styled and will use the CSS of the parent.
I demonstrate in this video from my video tutorial series.
What is this?
I’m sharing some tips to help you learn Grid Layout from the 1st of December until Christmas. Edited highlights from the things on this site and that I’ve posted elsewhere. Follow along!
If you find this style of learning useful then you might enjoy my online CSS Layout Workshop. I’m also available for in-house training, workshops and consultancy or conference speaking.