22.12.2013 Views

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

W3C CSS2 Cascading Style Sheets, level 2 - instructional media + ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

This property controls capitalization effects of an element’s text. Values have<br />

the following meanings:<br />

capitalize<br />

Puts the first character of each word in uppercase.<br />

uppercase<br />

Puts all characters of each word in uppercase.<br />

lowercase<br />

Puts all characters of each word in lowercase.<br />

none<br />

No capitalization effects.<br />

The actual transformation in each case is written language dependent. See<br />

RFC 2070 ([RFC2070]) for ways to find the language of an element.<br />

Conforming user agents [p. 32] may consider the value of ’text-transform’ to be<br />

’none’ for characters that are not from the Latin-1 repertoire and for elements in<br />

languages for which the transformation is different from that specified by the<br />

case-conversion tables of ISO 10646 ([ISO10646]).<br />

Example(s):<br />

In this example, all text in an H1 element is transformed to uppercase text.<br />

H1 { text-transform: uppercase }<br />

16.6 Whitespace: the ’white-space’ property<br />

’white-space’<br />

Value: normal | pre | nowrap | inherit<br />

Initial: normal<br />

Applies to: block-<strong>level</strong> elements<br />

Inherited: yes<br />

Percentages: N/A<br />

Media: visual<br />

This property declares how whitespace [p. 37] inside the element is handled.<br />

Values have the following meanings:<br />

normal<br />

This value directs user agents to collapse sequences of whitespace, and<br />

break lines as necessary to fill line boxes. Additional line breaks may be<br />

created by occurrences of "\A" in generated content (e.g., for the BR<br />

element in HTML).<br />

pre<br />

This value prevents user agents from collapsing sequences of whitespace.<br />

Lines are only broken at newlines in the source, or at occurrences of "\A" in<br />

generated content.<br />

nowrap<br />

This value collapses whitespace as for ’normal’, but suppresses line breaks<br />

within text except for those created by "\A" in generated content (e.g., for the<br />

BR element in HTML).<br />

243

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!