O'Reilly logo

Sams Teach Yourself CSS 24 in Hours by Kynn Bartlett

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

Chapter 15. Alignment

<feature><title>What You’ll Learn in This Hour:</title>
  • How to align, justify, and center content with CSS

  • How to indent paragraphs and other HTML elements

  • How to make text that rises above or sinks below the rest of the text, such as subscripts or superscripts

  • How to float an element on the right or left side so that subsequent content wraps around it

Control over text formatting enables you to replace many HTML tags with CSS rules. Effects that were previously available only as presentational markup attributes are part of the Cascading Style Sheets specification and can help you separate presentation from content.

</feature>

Aligning and Indenting Text

The alignment of text defines the way in which the text lines up with the ...

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