CSS Text Control in DHTML


.stretch { letter-spacing: 2em; font-weight: bold; }

Adjusting Line Height

BODY { line-height: 1.5; }
P BLOCKQUOTE { line-height: 100%; }

Text Justification

BODY {text-align: left; }

Indenting Paragraphs

P {text-indent: 2em; margin:0; }

Transforming Text

.name { text-transform: capitalize; }

Decorating Text

EM { text-decoration: underline; }
P EM {text-decoration: line-through; }

Controlling White Space

A browser will collapse multiple spaces and white spaces into a single space. Use the CSS format below to alter the handling of white space by the browser.

P {white-space: pre; }

The white-space property has three possible settings.