Definition:
CSS Padding property is used to put a space between the elements and inside the defined borders. You can put padding individually into each side of the elements by using the following syntax.
Margin Properties:
Margin Properties | Description |
padding | Applies padding to all four sides with a single value defined. |
padding-top | Applies padding to the element’s top inside the defined border. |
padding-right | Applies margin to the element’s right inside the defined border. |
padding-bottom | Applies margin to the element’s bottom inside the defined border. |
padding-left | Applies margin to the element’s left inside the defined border. |
You may be interested in the following topics:
- CSS Padding-left
- CSS Padding-bottom
- CSS Padding-right
- CSS Padding-top
- CSS Padding
- CSS Padding (All Properties)