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 Introducing Grid Layout Understanding Grid Challenge

Now set three column tracks in this order: 200px 400px 200px. In dont knw where i am getting it wrong i am stuck

.wrapper { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; } this is my code where am i wrong here?

style.css
/* Complete the challenge by writing CSS below */
.container {
  display: grid;
  grid-template-columns: auto auto auto auto;
}
 .container {
  max-width: 1200px;
  display: grid;
  grid-template-rows: 200px 300px 100px;
  grid-template-columns:  200px 300px 100px;
}
.wrapper { display: grid; grid-template-columns: 2fr 1fr1fr1fr; }
index.html
<!DOCTYPE html>
<html>
  <head>
    <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">
  </head>
  <body>
    <div class="wrapper">
      <div>A</div>
      <div>B</div>
      <div>C</div>
      <div>D</div>
      <div>E</div>
      <div>F</div> 
      <div>G</div>
      <div>H</div>   
    </div>
  </body>
</html>

2 Answers

I'm not quite sure how, even a copy-paste says "Bummer: Are you setting the column tracks correctly?" and I have the EXACT same thing as you.

to clarify it is:

.container {
  max-width: 1200px;
  display: grid;
  grid-template-rows: 200px 300px 100px;
  grid-template-columns:  200px 400px 200px;
}

hello godfrey, you are close i can see that you wrote

 grid-template-columns:  200px 300px 100px; /* here */

but in this case is asking for different values

Now set three column tracks in this order: 200px 400px 200px.

just fix the values and you should be fine. hope this helps

Thanks Anthony it worked for me