CSS Margin
Margin In CSS :
The margin clears an area about an factor (outside the border). The margin does not have a history shade, and is totally transparent.
The utmost effective, proper, base, and left margin can be transformed independently applying split up properties. A shorthand margin property can be applied, to alter all edges at once.
The utmost effective, proper, base, and left margin can be transformed independently applying split up properties. A shorthand margin property can be applied, to alter all edges at once.
Margin – Individual sides :
it is possible to specify different margins for different sides:
Example :
margin-top:100px;
margin-bottom:100px;
margin-right:50px;
margin-left:50px;
margin-bottom:100px;
margin-right:50px;
margin-left:50px;
Margin – Shorthand property :
To shorten the code, it is possible to specify all the margin properties in one property. This is called a shorthand property.
The shorthand property for all the margin properties is “margin”:
Example :
margin:100px 50px;