- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The grid item’s position: grid-column-start and grid-column-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-2">
<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: 2;
}
You’ve gone to a different page
Goalscompleted
0
- For the
.element
block change the starting coordinate of the column grid itemgrid-column-start
from2
to3
, - and also assign the end coordinate of the column grid item
grid-column-end: 5;
.
Comments