The CSS margin properties are used to create space around elements, outside of any defined borders.
Border Radius
Syntax of Border Radius is
h1 {
border-radius: ;
}
CSS has properties for specifying the margin for each side of an element:
margin-top
margin-right
margin-bottom
margin-left
Program
INPUT
<html>
<head>
<style>
div {
border: 1px solid black;
margin-top: 100px;
margin-bottom: 100px;
margin-right: 150px;
margin-left: 80px;
background-color: lightblue;
}
</style>
>/head>
<body>
<div>This div element has a top margin of 100px, a right margin of 150px, a bottom margin of 100px, and a left margin of 80px<div>
</body>
</html>