CSS Grid Layout Dynamic Rows [duplicate]
问题 This question already has answers here : Can I make a CSS grid with dynamic number of rows or columns? (5 answers) Closed 14 days ago . I was wondering if there is a way to assign a dynamic number of rows and columns to a Grid layout without Javascript? Every example I've seen has also included some Javascript and as of now I'm working on a bare knowledge of only HTML and CSS (a student). What I am trying to achieve is that as I add content, I don't want to have to create new rows in my CSS.