- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Even distribution</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
- Add the cat Simba as the last item to each of the
.room
blocks, meaning add the classesrug
andsimba
to the block. - Set items to be uniformly arranged along the main axis without margins at the edges for the
.room-1
block, - and assign uniform arrangement of items with half margins at the edges for the
.room-2
block.
Comments