1padding: 5px 10px 15px 20px; //top right bottom left
2
3padding: 10px 20px;//top & bottom then left & right
4
5padding-top: 5px; //just top padding
6padding-right: 10px; //just right padding
7padding-bottom: 15px; //just bottom padding
8padding-left: 20px; //just left padding
1padding:10px 5px 15px 20px;
2means
3top padding is 10px
4right padding is 5px
5bottom padding is 15px
6left padding is 20px
1Syntax:
2padding: top, right, bottom, left;
3
4Example:
5padding: 10px 15px 20px 25px;
6
7/*What it means*/
8padding from top 10px
9padding from right 15px
10padding from bottom 20px
11padding from left 25px
1An element's padding area is the space between its content and its border. Note: Padding creates extra space within an element. In contrast, margin creates extra space around an element.
1.box {
2 padding: <padding-top> || <padding-right> || <padding-bottom> || <padding-left>
3}