- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Flex items wrapping, flex-wrap</title>
<link href="course.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body class="house">
<div class="room">
<div class="rug simba"></div>
<div class="rug rudolf"></div>
<div class="rug muffin"></div>
</div>
</body>
</html>
CSS
.room {
display: flex;
}
.rug {
}
You’ve gone to a different page
Goalscompleted
0
- Assign the width
120px
to the rugs (.rug
), - Then add the cat Massimo as the last item to the
.room
block, meaning add the classesrug
andmassimo
to the block. - And then set flex items to overflow onto a new line for
.room
.
Comments