freeCodeCamp/guide/english/certifications/responsive-web-design/css-grid/add-rows-with-grid-template.../index.md

450 B

title
Add Rows with grid-template-rows

Add Rows with grid-template-rows

In this challenge, you are required to define rows for the CSS grid in <div class="container">.

Hint

You can define rows by using the grid-template-rows CSS property.

Solution

Since the challenge requires you to create two rows of 50px each, declare the followin in your .container CSS code block:

grid-template-rows: 50px 50px;