X hits on this document

367 views

0 shares

1 downloads

0 comments

35 / 142

Rendering XML with cascading style sheets

Bulleted lists are easy to read and used frequently in today's writing styles. If you want to create a list, then you will want to use first use the selector display: list-item for the list in general, and then something like disc, circle, square, or decimal for the list-style value. For example:

  • list-style: circle;

  • list-style: square;

  • list-style: disc;

  • list-style: decimal;

font-family

Associate font-family with a selector if you want to describe what font to render the XML in. Values in- clude the names of fonts as well as a number of generic font families such as serif or sans-serif. Font family names containing more than one word should be enclosed in quotes. Examples:

  • font-family: helvetica;

  • font-family: times, serif;

  • font-family: 'cosmic cartoon', sans-serif;

font-size

The sizes of fonts can be denoted with exact point sized as well as relative sizes such as small, x-small, or large. For example:

  • font-size: 12pt;

  • font-size: small;

  • font-size: x-small;

  • font-size: large;

  • font-size: xx-large;

font-style

Usual values for font-style are normal or italic denoting how the text is displayed as in:

  • font-style: normal;

  • font-style: italic;

font-weight

27

Document info
Document views367
Page views373
Page last viewedSat Dec 03 03:15:21 UTC 2016
Pages142
Paragraphs3126
Words34660

Comments