1padding: top right bottom left;
2
3padding: 1em 3px 30px 5px; /* top: 1em padding */
4 /* right: 3px padding */
5 /* bottom: 30px padding */
6 /* left: 5px padding */
7
8
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
1/* Individual Padding */
2padding-top: 1px; // just top padding
3padding-right: 2px; // just right padding
4padding-bottom: 3px; // just bottom padding
5padding-left: 4px; // just left padding
6
7/* Shorthand padding */
8padding: 25px 50px 75px 100px;
9 /*top padding is 25px
10 right padding is 50px
11 bottom padding is 75px
12 left padding is 100px*/
13padding: 25px 50px 75px;
14 /*top padding is 25px
15 right and left paddings are 50px
16 bottom padding is 75px*/
17padding: 25px 50px;
18 /*top and bottom paddings are 25px
19 right and left paddings are 50px*/
20padding: 25px;
21 /*all four paddings are 25px*/
1Padding is how much an element is away from itself —
2how much distance an element wants to keep with the elements inside it.