Interactive online courses HTML Academy
2026-03-09 10:59 Diff

In the previous assignment we already mentioned that negative values for coordinates can be used in rows. And, as you might have already guessed, in order to do this we need the grid-row-start/grid-row-end properties.

We already used the value -1. Let’s try something new, such as, for example, the value -2 that will designate the second row line counted from the end of the grid:

In the code, it will be written as follows:

.element { grid-row-start: 1; grid-row-end: -2; }

Shall we practice what we learned a little?