CSS bootcamp · Lab 42

Three columns

mediumGrid10 minLesson: Grid

Read the question, write CSS on the right, then Preview or Check.

QuestionHint and solution stay closed until you open them

.grid three equal columns 1fr 1fr 1fr.

Examples

Example 1
Expected
3 cols
Hint
  1. grid-template-columns: 1fr 1fr 1fr;
Show correct code

Peek only after you have tried. You can still Check your own version.

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
styles.cssLive preview · Check reads computed styles
ResultIdle
Run to see output. Check grades the tests.