- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Remaining values of align-content</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 class="rug marty"></div>
<div class="rug blacky"></div>
</div>
</body>
</html>
CSS
.room {
display: flex;
flex-wrap: wrap;
align-content: stretch;
align-items: stretch;
}
.rug {
min-height: 40px;
width: 180px;
}
You’ve gone to a different page
Goalscompleted
0
- For
.room-
, center-align the rows at the start of the axis, - and at the end of the axis,
- and apply uniform alignment without margins along the edges
- as well as uniform alignment with half margins along the edges.
Comments