- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>The sequence number of the flex item, order</title>
<link href="course.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body class="house">
<div class="room">
<div class="rug rudolf">
<span>Rudolf</span>
</div>
<div class="rug marty">
<span>Marty</span>
</div>
<div class="rug simba">
<span>Simba</span>
</div>
<div class="rug muffin">
<span>Muffin</span>
</div>
</div>
</body>
</html>
CSS
.room {
display: flex;
align-items: center;
}
You’ve gone to a different page
Goalscompleted
0
- Assign the sequence number
-1
for Muffin’s rug (.muffin
), - then assign the sequence number
-2
for Simeon’s rug (.simba
), - and finally assign the number
1
for Rudolf’s rug (.rudolf
).
Comments