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
1padding: 00px 00px 0px 0px; //top right bottom left
2// mnemonic to remeber positions Te-Rri-B-Le (terrible)
1.yourClass {
2 padding-left: 50px; // or
3 padding-left: 1%; // to scale it in relation to its parent
4}
1<h2 style="padding-top: 20px; padding-right: 20px; padding-bottom: 20px; padding-left: 20px">London</h2>
2
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*/