Positioning Elements by Lines 5 exercises
Problem

Practice Shorthand Positioning

In this exercise, we have a 5x5 grid with three boxes to position: a pink box, a purple box, and a blue box.

![box colored](https://res.cloudinary.com/dwppkb069/image/upload/v1684523221/tutorials/images-17.1_Exercise11_Intro.mp4/171_exercise11_intro_3_00-14000-pink-box--we-have-a-pink-box--a-purple

Loading exercise

Transcript

0:00 Next up, we have another exercise involving positioning elements within a grid. We have the same five-by-five grid that we've been working with. Now, instead of just a single pink box, we have a pink box, a purple box, and a blue box.

0:13 What I'd like you to do is recreate this layout. You'll want to look at the screenshot or pause the video so that you can see exactly where these elements go and how big they are. Specifically, I want you to do it using the grid-row and grid-column shorthand. Instead of doing things like grid-row-start, grid-row-end, I want you to use grid-row and grid-column.

0:38 In the HTML file, there's nothing for you to touch. In the CSS file, I've set up the grid for you already. Five by five, as you can see right here. There's no need to touch anything except for the individual boxes. The pink box, style the pink box right there. For the purple box, write your code there. For the blue box, write your code here.

0:58 Take a look at the end result. This is what we're starting with, but this is what I'd like to end with. I'll be back with the solution.