padding

The padding CSS property sets the required padding space on all sides of an element. The padding area is the space between the content of the element and its border. Negative values are not allowed.
 
The padding property is a shorthand to avoid setting each side separately (padding-top, padding-right, padding-bottom, padding-left).

Example

<!DOCTYPE html>
<html>
    <head>
        <style>
            .p1 {
                padding: 5%; /* on all sides 5% padding */
            } .p2 {
                padding: 10px; /* on all sides 10px padding */
            } .p3 {
                padding: 10px 20px; /*  top and bottom 10px padding  */
            } .p4 {
                /*  left and right 20px padding  */
                padding: 10px 3% 20px; /* top 10px padding*/
                /*  left and right 3% padding */
                /*  bottom 20px padding */
            } .p5 {
                padding: 1em 3px 30px 5px; /*  top    1em  padding  */
                /*  right  3px  padding  */
                /*  bottom 30px padding  */
                /*  left   5px  padding  */
            }
        </style>
    </head>
    <body>
    <p class="p1">
        The quick brown red fox jumps over the lazy dog
    </p>
    <p class="p2">
        The quick brown red fox jumps over the lazy dog
    </p>
    <p class="p3">
        The quick brown red fox jumps over the lazy dog
    </p>
    <p class="p4">
        The quick brown red fox jumps over the lazy dog
    </p>
    <p class="p5">
        The quick brown red fox jumps over the lazy dog
    </p>
    </p>
</body>
</html>