padding css 4 values code example

Example 1: padding 4 values

padding: top right bottom left;

padding: 1em 3px 30px 5px;  /* top:    1em padding  */
                            /* right:  3px padding  */
                            /* bottom: 30px padding */
                            /* left:   5px padding  */

Example 2: css top padding

padding-top: 25px;

Example 3: padding css

padding:10px 5px 15px 20px;
means
top padding is 10px
right padding is 5px
bottom padding is 15px
left padding is 20px

Example 4: css padding attribute order

padding: top, right, bottom, and left

Example 5: css padding

padding: 1%;  // scales proportionally - on ALL sides

Example 6: padding 3 values

padding:top,right&left,bottom;

Tags:

Css Example