CSS Padding (All Properties)

Please Share On:

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 PropertiesDescription
paddingApplies padding to all four sides with a single value defined.
padding-topApplies padding to the element’s top inside the defined border.
padding-rightApplies margin to the element’s right inside the defined border.
padding-bottomApplies margin to the element’s bottom inside the defined border.
padding-leftApplies margin to the element’s left inside the defined border.


You may be interested in the following topics:

Leave a Reply

Your email address will not be published. Required fields are marked *

Copyright @2023. All Right Reserved.


Social media & sharing icons powered by UltimatelySocial