5.7. Text Properties

The text properties control the way text in a paragraph is laid out. Options let the user customize characteristics like interword spacing, paragraph justification, and indentation of leading lines in paragraphs.

word-spacing, letter-spacing

normal | +/– pt, pc, in, cm, mm | +/– em, ex, px

These properties specify a change to the default spacing between words or characters. Values are expressed in the standard length units (see Table 5.1 in Section 5.11) or by the keyword normal. Numeric values can be positive (add the space to the default word spacing) or negative (subtract the space from the default). Neither Netscape nor Internet Explorer supports word-spacing. Netscape does not support letter-spacing.

text-decoration

none ...

Get Core Web Programming, Second Edition 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.