- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>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>
</body>
</html>
CSS
.room {
display: flex;
flex-direction: column-reverse;
}
You’ve gone to a different page
Goalscompleted
0
Assign another direction to the main axis for the .room
block:
- from top to bottom,
- from right to left,
- and then from left to right.
Pay attention to the direction of the cross axis.
Comments