code/html/css/Margin/README.md
1. Setting individual side margin
2. Shorthand property for CSS Margins
CSS Margin property is used to create space between webpage border and HTML Element's border (if defined using CSS Border property).
Syntax:
<style>
#idvalue
{
border: {width} {style} {color};
margin: {value}
}
</style>
<{html_element} id="idvalue"> {content} </{html_element}>
Example:
<style>
#margin1
{
border: 2px solid black;
text-align:center;
margin: 100px;
}
</style>
<h1 id="margin1"> Generic Heading with defined margin</h1>
<h1> Normal heading </h1>
The Margin property can be defined in following ways: