text-indent

The text-indent CSS property specifies how much horizontal space should be left before the beginning of the first line of the text content of an element. Horizontal spacing is with respect to the left (or right, for right-to-left layout) edge of the containing block element’s box.

Values

<length>
Indentation is specified as fixed <length>. Negative values are allowed. See values for possible units.
<percentage>
Indentation is a <percentage> of the containing block width.

<!doctype html>
<html>
    <head>
        <title>CSS Tutorials</title>
        <style type="text/css">
            .p1 {
                text-indent: 2em;
            } .p2 {
                text-indent:10em;
            }
        </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>