01G. Combining Rows and Columns to Create Layouts
Less than 1 minute
01G. Combining Rows and Columns to Create Layouts ๊ด๋ จ
Mastering CSS Grid | Colt Steele
Learn web development with Colt Steele
Combining Rows and Columns to Create Layouts | Colt Steele
The `grid-template-columns` and `grid-template-rows` properties can both be added to create more complex layouts.
Let's move on and create a more complicated layout by combining rows and columns.
For this example, we'll create a 4-column and 2-row layout, meaning we'll have eight spots for content.
Remember, when we set up the rows and the columns, we're defining a structure that content can then flow into and fill the spaces.