- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="ru">
  <head>
    <meta charset="utf-8">
    <title>align-content: stretch и align-items</title>
    <link href="setting.css" rel="stylesheet">
    <link href="style.css" rel="stylesheet">
  </head>
  <body class="house">
    <div class="room room-1">
      <div class="rug simeon"></div>
      <div class="rug rudolf"></div>
      <div class="rug keks"></div>
      <div class="rug massimo"></div>
    </div>
    <div class="room room-2">
      <div class="rug simeon"></div>
      <div class="rug rudolf"></div>
      <div class="rug keks"></div>
      <div class="rug massimo"></div>
    </div>
  </body>
</html>
CSS
.room {
  display: flex;
  flex-wrap: wrap;
  height: 150px;
}
.rug {
  min-height: 20px;
  width: 80px;
}
.room-1 {
  align-content: stretch;
  align-items: stretch;
}
.room-2 {
  align-content: stretch;
  align-items: stretch;
}
.room-2 .rug {
  width: 80px;
}
Вы перешли на другую страницу
ЗадачиВыполнено
0
- Задайте .rugвнутри.room-2ширину120px, чтобы там появилось два ряда.
- Для обеих комнат задайте align-itemsв начале оси,
- посередине оси,
- в конце оси.