Css Grid: use Css Grid to control spacing

Tell us what’s happening:

Your code so far


.item5 {
  background: PaleGreen;
  /* Only change code below this line */
  grid-column: 2 / 3;

  /* Only change code above this line */

.container {
  font-size: 40px;
  min-height: 300px;
  width: 100%;
  background: LightGray;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  grid-gap: 10px;

<div class="container">
<div class="item1">1</div>
<div class="item2">2</div>
<div class="item3">3</div>
<div class="item4">4</div>
<div class="item5">5</div>

Your browser information:

User Agent is: Mozilla/5.0 (Linux; Android 8.1.0; CPH1909) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Mobile Safari/537.36.

Challenge: Use grid-column to Control Spacing

Link to the challenge:

please tell us what’s happening, otherwise it is pretty difficult to help you

1 Like


You set grid-column: 2 / 3;. Take a look at this image below, which breaks down the indices for the rows/columns of a 3x3 grid.

1 Like

Oops sorry I just posted it, not saying what is my problem. And this is my first posted topic.

Ow thanks dude I finished the challenge with 2 / 4. :star_struck: