- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The grid item’s position: grid-row-start and grid-row-end</title>
<link href="world.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body class="world">
<div class="land land--guided land--task-3">
<div class="element element--water">Water</div>
</div>
</body>
</html>
CSS
.land {
display: grid;
grid-template-columns: 125px 125px 125px 125px;
grid-template-rows: 125px 125px 125px 125px;
}
.element {
grid-row-start: 3;
grid-column-start: 3;
grid-column-end: 5;
}
You’ve gone to a different page
Goalscompleted
0
- For the
.element
block assign the following grid item coordinates for the columns: start coordinate of1
and end coordinate of3
, - and then assign the coordinates for the rows: start on row
2
and end on row4
.
Comments