copyright © CSSPG, lud February 28 1999


 for practical use of CSS

CSS Example: Indent

this document is located at...
<URI:http://css.nu/examples/indent.html>

* CSS Indentation *

Occasionally, authors would like to duplicate the typography convention of a 'first line indent', which is often used in novels. With CSS, this becomes as easy as specifying the following ruleset in your CSS file:

      P.indent { text-indent: 1em; }
	

I have it on good authority that the European convention for first line indents begins, not with the first paragraph after a headline, but with the succeeding paragraph. Therefore, this paragraph has been added to demonstrate the technique.


CSS Pointers Navigation
Index · Browser Bugs · Books · Tools · DHTML · XSL & DSSSL
Main Site Navigation
Index · Articles · Examples · Experiments · FAQ · Markup · Styles · Who is?
CSSPG ~ Sue ~ Roland
Validate markup Check CSS