padding-right

The padding-right CSS property of an element sets the padding space required on the right side of an element. The padding area is the space between the content of the element and its border. Negative values are not allowed.

Example

<!DOCTYPE html>
<html>
    <head>
        <style>
            .p1 {
                padding-right:20px;
            } .p2 {
                padding-right: 40px; /* on all sides 10px 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>
    </body>
</html>