Padding
These properties allow the author to control a box’s padding—the area between its content and its border. You can also read The CSS Box Model for more information about padding.
In this Section
- padding-top
this property that sets the padding for the top side of an element - padding-right
sets the padding for the right side of an element - padding-bottom
this property that sets the padding for the bottom side of an element - padding-left
sets the padding for the left side of an element - padding
sets the padding for all four sides of an element
Previous: margin
Next: padding-top
User-contributed notes
There are no comments yet.
Add a note
To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.
