O'Reilly logo

Real World XML by Steven Holzner

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

Margins, Indentations, and Alignments

These are the properties you use to work with margins, indentations, and alignments:

  • line-height— Indicates the height given to each line. Set this to an absolute measurement or a percentage value, such as 200% to create double spacing.

  • margin-left— Sets the left margin of a block element.

  • margin-right— Sets the right margin of a block element.

  • margin-top— Sets the top margin of a block element.

  • text-align— Sets the alignment of text. You can set this to left, right, center, or justify.

  • text-indent— Sets the indentation of the first line of block-level elements. Set this to an absolute value such as 10 pixels, 10px, or 4 points, 4pt.

  • vertical-align— Sets the vertical alignment of text. You can set this to baseline ...

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