NOTICE: This website is no longer updated or supported - as such many of the techniques used to build it may seem antiquated in the modern day. It is preserved for historical reasons only.

HTML XHTML The Complete Reference
home » reference » appendix b » css1 / css2 properties

word-spacing


This property sets the spacing between words. Values can be set in inches (in), centimeters (cm), millimeters (mm), points (pt), picas (pc), em spaces (em), or pixels (px). Negative values are possible with this property, and may be used either for interesting effects or to create unreadable text. A default value of normal sets word spacing to the standard browser setting.

Examples


p {font-family: Arial; font-size: 16pt; word-spacing: 3pt;}
p.normal {font-family: Helvetica; font-size: 12pt; word-spacing: normal;}

Browser and CSS Support Notes


CSS1
IE 6
Nav 4, 4.5-4.8, 6, 7
Opera 4, 5, 6, 7

(X)HTML Elements
CSS Properties
Back: width Next: z-index
< Home | About | Chapters | Examples | Errata | Reference | Site Map >