Indenting only the first line of text in a paragraph?

Miles Henrichs picture Miles Henrichs · May 2, 2011 · Viewed 87.4k times · Source

I have several paragraphs that I would like to indent, although only the first lines of these paragraphs.

How would I target just the first lines using CSS or HTML?

Answer

alex picture alex · May 2, 2011

Use the text-indent property.

p { 
   text-indent: 30px;
}

jsFiddle.