Text Properties

Probably the most common reason people think of stylesheets is to format text, so I'll start with the CSS text properties.

letter-spacing

  • CSS1 values: normal|<length>

  • CSS2 values: inherit

  • Default value: normal

  • Element support: All elements

  • Browser support: [IE4, IE5, IE6]

  • Style inherited: Yes

This property sets the spacing between text characters. It is implemented in Internet Explorer, but the implementation appears to be a little spotty.

line-height

  • CSS1 values: normal|<number>|<length>|<percentage>

  • CSS2 values: inherit

  • Default value: normal

  • Element support: All elements

  • Browser support: [IE3, IE4, IE5, IE6, NS4, NS6]

  • Style inherited: Yes

This property gives the minimum height of the element's box. Usually it is used to specify single ...

Get Real World XML now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.