O'Reilly logo

HTML5 and CSS3: Visual QuickStart Guide, Seventh Edition by Bruce Hyslop, Elizabeth Castro

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding Indents

You can determine how much space should precede the first line of a paragraph by setting the text-indent property Image.

Image This code adds a 1.5em indent to the p elements, which, since their font size is about 14 pixels, will be an indent of about 21 pixels Image.

body {     background: #eef;     color: #909;     font: 100% "Palatino Linotype", Palatino, serif;}h1,h2 {     color: navy;     font: 1.375em "Arial Black", Arial, sans-serif;     letter-spacing: ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required