What do you mean?!?!?!?!?!?!?!

Tell us what’s happening:

what do you mean, item5 class should have a grid-column property which results in it consuming the last two columns of the grid.

Your code so far


  .item5 {
    background: PaleGreen;
    /* Only change code below this line */

    /* 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 (Windows NT 6.1; Win64; x64; rv:84.0) Gecko/20100101 Firefox/84.0.

Challenge: Use grid-column to Control Spacing

Link to the challenge:

:triumph: :rage:

From the example:

grid-column: 1 / 3;

This will make the item start at the first vertical line of the grid on the left and span to the 3rd line of the grid, consuming two columns.

The example ‘consumes’ the first two columns. You need to make item5 consume the last two columns.

1 Like