Свойство margin-bottom
Описание
Устанавливает величину отступа от нижней границы текущего элемента до внутренней границы его родительского элемента.
Синтаксис
margin-bottom: размер | проценты | auto;
Пример
<!DOCTYPE html>
<html lang='ru'>
<head>
<meta charset='UTF-8'>
<meta name='viewport' content='width=device-width, initial-scale=1.0'>
<title>Document</title>
</head>
<body>
<style>
.con-t {
width: 300px;
background-color: rgb(255, 86, 86);
}
#margin-bottom-test {
width: 200px;
height: 80px;
margin-top: 10px;
margin-bottom: 20px;
margin-left: 30px;
margin-right: 50px;
background-color: aquamarine;
border: 3px solid black;
}
</style>
<div class='con-t'>
<div id='margin-bottom-test'></div>
</div>
</body>
</html>
Читайте также
Свойство list-style
Универсальное свойство. Одновременно задает стиль маркера, его положение, а также изображение, ко...
Функция attr()
Функция применяется для добавления значения атрибута HTML-элемента в стилевое свойство. Например,...
Свойство accent-color
Свойство accent-color определяет цвет акцента для некоторых элементов формы. Акцентом в данном сл...
Свойство grid-column
Сокращение для grid-column-start + grid-column-end <br>grid-column-start / grid-row-start —...
Свойство animation-play-state
Указывает состояние анимации. Анимацию можно поставить на паузу и после этого воспроизвести с тог...