Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Grid Layout Flexible Sized Grids Flexible Tracks Challenge

What am I doing wrong?

Set four column tracks using a unit that represents a fraction of the available space inside the grid container. The first track should take up 2 fractions of the space, and the remaining tracks should each take up 1 fraction.

/* Complete the challenge by writing CSS below */

.wrapper {
  display: grid; 
  grid-template-columns: 2fr 1fr 1fr 2fr

<!DOCTYPE html>
    <title>CSS Grid Layout</title>
      <link href='https://fonts.googleapis.com/css?family=Varela+Round' rel='stylesheet' type='text/css'>
    <link href="page.css" rel="stylesheet">
    <link href="style.css" rel="stylesheet">
    <div class="wrapper">

2 Answers

Andrey Mitko
Andrey Mitko
19,127 Points


I think you forgot a semicolon in your CSS. It should look like this:

.wrapper {
  display: grid; 
  grid-template-columns: 2fr 1fr 1fr 2fr;


Even after adding the semi colon, its still failing.

Jeremy Caudle
Jeremy Caudle
23,719 Points

Hi Jamar,

I think the problem is the width of the last column track. It is currently 2fr and should be set to 1fr.

I hope this helps and good luck!