- The padding property allows you to specify how much space should appear between the content of an element and its border.
- Padding is white space immediately surrounding an element or another object on a web page.
- Padding is done within border where as margin is done outside border
-
The padding clears an area around the content (inside the border) of an element.
- The value of padding should be either a length, a percentage, or the word inherit.
- The value of padding should be always positive.
Properties
padding-top
padding-right
padding-bottom
padding-left
No comments: