♦ CSS Padding
♣ About CSS Padding
Padding is extension of only the background of tag.Padding provides space around the content of the tag.
Defining Type1:
Padding | Size |
---|---|
padding | a px |
padding | b % |
Syntax Explanation:
where, a is number of pixels, and b is percentage
Defining Type2:
padding-Side@Demension |
---|
padding-left@a px; |
padding-right@b px; |
padding-top@c px; |
padding-bottom@d px; |
Syntax Explanation:
where, a, b, c, d can be different pixels