Openwave Mobile Browser 6.1 and 6.2: XHTML Mobile Profile and CSS Reference
Section 29 out of 38 total sections
Current chapter: CSS Reference

The text style properties affect a number of aspects of how text is displayed, such as how it is indented and aligned.

Sets the width of the indention of the first line of text.
em, ex, cm, mm, in, pt, pc, px, %, auto, inherit
For more information, see Units of Measure, Percentage, and Keywords.
p {text-indent: 2em}
Indents the first line of each paragraph 2 ems.

Sets the horizontal alignment of lines of text.
See Keywords for more information about inherit.
h3 {text-align: center}

Sets underlining and blinking of text.
none, underline, blink, inherit
All elements that contain text.
h1 {text-decoration: underline}
Underlines all first-level headings.

Specifies how much space is inserted between characters, in addition to the normal space between characters.
normal, em, ex, cm, mm, in, pt, pc, px, inherit
For more information, see Units of Measure and Keywords.
This CSS2 property is not part of the WAP CSS specification.
This property is not supported by the Openwave SDK.
h1 {letter-space: 1pt}
Adds an extra point of space between each letter in first-level heads.

Specifies how much space is inserted between words, in addition to the normal space between words.
normal, em, ex, cm, mm, in, pt, pc, px, inherit
For more information, see Units of Measure and Keywords.
This CSS2 property is not part of the WAP CSS specification.
This property is not supported by the Openwave SDK.
h1 {word-space: 0.3em}
Adds a 0.3 ems of extra space between words in first-level heads.

Openwave Mobile Browser does not use this WCSS property.

Determines how white space, that is, spaces and carriage returns, are handled in text. Normally, the browser treats both carriage returns and multiple consecutive space characters as a single space character, thus "collapsing" any amount of white space to a single space (the <code> and <pre> elements are exceptions to this rule, as described in <code> and <pre>).
For more information on inherit, see Keywords.
The values have the following effect:
normal The browser "collapses" any number of carriage returns or spaces to a single space.
pre The browser treats this value as equivalent to normal. Use the <pre> XHTML element to preserve multiple spaces and carriage returns, instead.
nowrap The browser causes lines that are longer than the screen to scroll horizontally across the screen when the user selects them.
li.scroll {white-space: nowrap}
Causes list items whose class attribute is set to scroll to scroll across the screen when the user selects them.

