- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>At the start and at the end of the cross axis</title>
<link href="course.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body class="house">
<div class="room">
<div class="rug rudolf"></div>
<div class="rug muffin"></div>
<div class="rug simba"></div>
</div>
</body>
</html>
CSS
.room {
display: flex;
align-items: center;
justify-content: center;
}
.rug {
height: 150px;
}
.muffin {
height: 250px;
}
You’ve gone to a different page
Goalscompleted
0
Assign the following alignments to the flex elements for the .room
block:
- at the start of the cross axis,
- and then at the end of the cross axis.
Comments