- 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 main axis</title>
<link href="course.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body class="house">
<div class="room room-1">
<div class="rug rudolf"></div>
<div class="rug muffin"></div>
</div>
<div class="room room-2">
<div class="rug rudolf"></div>
<div class="rug muffin"></div>
</div>
</body>
</html>
CSS
.room {
display: flex;
height: 150px;
}
.room-1 {
flex-direction: row;
justify-content: center;
}
.room-2 {
flex-direction: row;
justify-content: center;
}
You’ve gone to a different page
Goalscompleted
0
- Rotate the main axis from right to left in the
.room-2
block. - Set items to be arranged at the start of the main axis for both blocks,
- and then arrange them at the end of the main axis in just the first block,
- and then arrange them again at the end of the main axis in both blocks.
Comments