♦ CSS Margin
♣ About CSS Margin
Margins are the separation between current HTML tag and the next HTML tag, i.e, it can be thought as a limit to which a particular HTML tag can propagate.Defining Type1:
Margin | Size |
---|---|
margin | a px |
margin | b % |
Syntax Explanation:
where, a is number of pixels, and b is percentage
Defining Type2:
Margin-Side@Demension |
---|
margin-left@a px; |
margin-right@b px; |
margin-top@c px; |
margin-bottom@d px; |
Syntax Explanation:
where, a, b, c, d can be different pixels