- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Reverse overflow</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 class="rug massimo"></div>
</div>
</body>
</html>
CSS
.room {
display: flex;
flex-wrap: wrap;
}
.rug {
width: 120px;
}
You’ve gone to a different page
Goalscompleted
0
- Add two more cats: Marty (a block with the classes
rug
andmarty
), and Blacky (a block with the classesrug
andblacky
), - and then set flex items to overflow onto a new line in the reverse direction (
wrap-reverse
) for.room
, - and then set a width of
180px
for all rugs.
Comments