Grid-template-columns: 1fr 100px 2fr |

Tell us what’s happening:
Describe your issue in detail here.

Help friends,
I need to make a grid with three columns whose widths are as follows: 1fr, 100px, and 2fr. it seems to be right however it lauch me a Error!

  **Your code so far**

<style>
.d1{background:LightSkyBlue;}
.d2{background:LightSalmon;}
.d3{background:PaleTurquoise;}
.d4{background:LightPink;}
.d5{background:PaleGreen;}

.container {
  font-size: 40px;
  width: 100%;
  background: LightGray;
  display: grid;
  /* Only change code below this line */
 grid-template-columns: 1fr 100px 2fr;  


</style>

<div class="container">
<div class="d1">1</div>
<div class="d2">2</div>
<div class="d3">3</div>
<div class="d4">4</div>
<div class="d5">5</div>
</div>
  **Your browser information:**

User Agent is: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36

Challenge: Use CSS Grid units to Change the Size of Columns and Rows

Link to the challenge:

Hi
You don’t appear to have closed off your .container selector ie I think your missing the >
Thats the only issue I can see

Hi @Leviathan666 !

Welcome to the forum!

It looks like you also deleted one of the comment tags and the code for the grid-template-rows.

I would reset the lesson and only change code you are supposed to.

1 Like

thanks a lot, i solved it .

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.