Forum Moderators: open

Message Too Old, No Replies

Indenting

Indenting

         

jwalsh98

5:38 am on Sep 28, 2005 (gmt 0)

10+ Year Member



I don't know if this is possible but how do you indent a paragraph using HTML?

tedster

6:01 am on Sep 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I assume you mean indenting the first line. This is not done just with html, but requires css. If you wanted to put the css rule inline it would be:

<p style="text-indent: 30px;"> or whatever units you want for the size of the indent.

If you mean to indent the entire paragraph, you could use css again, and use code such as

<p style="padding-left:30px;">

And one final word, being the purist typographer that I am. If you examine most books in print, you will see that the long established convention has been to EITHER have a double line break between paragraphs OR to indent the first line of a new paragraph (but NOT the first line of the first paragraph). Using a first line indent and a double line break at the same time is redundant, and actually slows down reading speed slightly. So doing both is not traditionally considered proper typesetting.

However, this doubled up practice has spread rather fast with the advent of desktop publishing. Strict traditionalists still consider it a bit of a "barbarism" however.

Robin_reala

6:24 am on Sep 28, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Interesting point tedster. I might use the no-margin/text-align look on an upcoming site.