- index.html
- style.css
HTML
<!DOCTYPE html>
<html lang="ru">
<head>
<meta charset="utf-8">
<title>Особенности свойства margin</title>
<link href="course.css" rel="stylesheet">
<link href="style.css" rel="stylesheet">
</head>
<body class="world">
<div class="spot">
<div class="skate skate-1 racoon-green"></div>
<div class="skate skate-2 racoon-brown"></div>
<div class="skate skate-3 racoon-orange"></div>
<div class="skate skate-4 racoon-gray"></div>
</div>
</body>
</html>
CSS
.spot {
display: flex;
align-items: center;
justify-content: flex-start;
}
.skate {
margin: 0;
min-width: 40px;
min-height: 100px;
}
.skate-2 {
}
.skate-4 {
}
Вы перешли на другую страницу
ЗадачиВыполнено
0
- Задайте скейтбордам
.skate
внешние отступы со всех сторон10px
. - Затем задайте
margin-left: auto;
второму скейту, - а потом
margin-right: auto;
четвёртому скейту. - Напоследок измените у
.spot
распределение по главной оси наflex-end
и убедитесь, что ничего не изменилось.