XML technologies / CSS / Advanced websites with CSS / CSS property reference / word-break
(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)
The property word-break, which is not part of the CSS specification, describes special line-breaking behavior for elements containing Chinese, Japanese and Korean (CJK) text.
Inherited: yes
Values
The property word-break accepts the following constants:
break-all: Automatic line breaks may occur within words. This setting is suitable for CJK text that also contains Latin text fragments.keep-all: Generally disallows automatic line breaks within words. This setting is suitable for texts in Latin writing systems that also contain CJK text fragments.normal: Allows automatic line breaks within words in CJK text, but not within words in text using Latin writing systems.
Default value: normal
Compatibility
CSS version: is not part of the CSS specification
Works only in Internet Explorer for Windows, version 5 and later.
Corresponding functionality is planned for CSS3. However, the final property and value names will probably be different. Current information is available on the CSS Working Group website.
Example
The following style rule disallows automatic line breaks and enables language-appropriate display of Chinese, Japanese and Korean text:
body {
word-break: keep-all;
}
Copyright © 2006 of the German translation, dpunkt.verlag GmbH
You may print the online version for your private use.
Otherwise, this chapter from “CSS − Anspruchsvolle Websites mit Cascading Stylesheets” is subject to the same conditions as the bound edition: the work, including all its parts, is protected by copyright. All rights reserved, including reproduction, translation, microfilming, and storage and processing in electronic systems.
dpunkt.verlag GmbH, Ringstraße 19, 69115 Heidelberg