View Single Post
Old 09-07-2010, 03:22 PM   #8
Nathanael
Groupie
Nathanael ought to be getting tired of karma fortunes by now.Nathanael ought to be getting tired of karma fortunes by now.Nathanael ought to be getting tired of karma fortunes by now.Nathanael ought to be getting tired of karma fortunes by now.Nathanael ought to be getting tired of karma fortunes by now.Nathanael ought to be getting tired of karma fortunes by now.Nathanael ought to be getting tired of karma fortunes by now.Nathanael ought to be getting tired of karma fortunes by now.Nathanael ought to be getting tired of karma fortunes by now.Nathanael ought to be getting tired of karma fortunes by now.Nathanael ought to be getting tired of karma fortunes by now.
 
Posts: 185
Karma: 1110435
Join Date: Jul 2010
Location: Shanghai, China
Device: Sibrary G5
Quote:
Originally Posted by theducks View Post
Code:
 text-indent: 3%;  (or 1.5em or 15pt)
I like % because it makes the indent proportional to the display width, all the others are absolute, with respect to width.
Not strictly true. An "em", being defined as the width of a lowercase "m", would vary with the size of your text. Increase text size, and the indent increases along with it.

I prefer 1.5em. While % works well for reasonable text sizes, it tends to break down at the extremes. At small text sizes, 3% takes looks a bit much, while for really large text sizes, it can be hard to visually make out any indent at all.

Try it here (w3schools.com).

--Nathanael
Nathanael is offline   Reply With Quote