X hits on this document

468 views

0 shares

1 downloads

0 comments

34 / 142

Rendering XML with cascading style sheets

  • display: block;

  • display: list-item;

margin

The margin property is used to denote the size of white space surrounding blocks of text. Values can be denoted in terms of percentages (%), pixels (px), or traditional typographic conventions such as the em unit (em). When the simple margin property is given a value, the value is assigned to the top, bottom, left, and right margins simultaneously. It is possible to specify specific margins using the margin-top, margin-bottom, margin-left, and margin-right properties. Examples include:

  • margin: 5%;

  • margin: 10px;

  • margin-top: 2em;

  • margin-left: 85%;

  • margin-right: 50px;

  • margin-bottom: 1em;

text-indent

Like the margin property, the text-indent property can take percentages, pixels, or typographic units for values. This property is used to denote how particular lines in blocks of text are indented. For example:

  • text-indent: 2em;

  • text-indent: 3%;

text-align

Common values for text-align are right, left, center, and justify. They are used to line up the text within a block of text. These values operate in the same way your word processor aligns text. For example:

  • text-align: right;

  • text-align: left;

  • text-align: center;

  • text-align: justify;

list-style

26

Document info
Document views468
Page views474
Page last viewedFri Dec 09 21:58:53 UTC 2016
Pages142
Paragraphs3126
Words34660

Comments