Definition:
CSS margin-bottom applies space outside the defined bottom border.
Syntax:
margin-bottom: 10px;
Source Code:
<!DOCTYPE html>
<html>
<head>
<style>
.paragraph{
border: 2px dashed red;
background-color: pink;
text-align:center;
margin-bottom: 10px;
}
</style>
</head>
<body>
<div class="paragraph">Bottom Margin is 10px; </div>
</body>
</html>
Output:
Bottom Margin is 10px;
Donate to support writers
You may be interested in the following topics:
- CSS margin:collapse;
- CSS margin:inherit;
- CSS Margin: auto;
- CSS margin-left
- CSS margin-bottom
- CSS margin-right
- CSS Margin-top
- CSS Margin
- CSS Margin (All Properties)