Text Properties

 

Property Valid Values Sample Usage Applies to Inherited?
letter-spacing normal | length { letter-spacing:2pt; } all elements yes
text-decoration none | underline | overline | line-through { text-decoration:underline; } all elements no
vertical-align sub | super | { vertical-align:sub; } inline elements no
text-transform capitalize | uppercase | lowercase | none { text-transform:lowercase; } all elements yes
text-align left | right | center | justify { text-align:center; } block-level elements yes
text-indent length | percentage { text-indent:20px; } block-level elements yes
line-height normal | number | length | percentage { line-height:5pt; } all elements yes

 

Text Align

You can align text with the following:

Possible values are

left

right

center

justify

Examples:

This text is aligned left.

This text is aligned in the center.

This text is aligned right.

This text is justified.

 

 

 

Text Decoration

You can decorate text with the following:

text-decoration: value;

Possible values are

none

underline

overline

line through

blink

Examples:

This text is underlined.

This text is overlined.

This text has a line through it.

This text is blinking (not in internet explorer).

 

Text Indent

You can indent the first line of text in an (X)HTML element with the

following:

text-indent: value;

Possible values are

length

percentage

Examples:

This text is indented 10px pixels.

 

 

 

Text Transform

You can control the size of letters in an (X)HTML element with the

following:

text-transform: value;

Possible values are

none

capitalize

lowercase

Examples:

This First Letter In Each Word Is Capitalized, Though It Is Not In My

File.

THIS TEXT IS ALL UPPERCASE, THOUGH IT IS ALL LOWERCASE IN MY

FILE.

this text is all lowercase. though it is all uppercase in my file.

 

 

White Space

You can control the whitespace in an (X)HTML element with the

following:

white-space: value;

Possible values are

normal

pre

nowrap

 

 

Word Spacing

You can adjust the space between words in the following manner. You

can use negative values.

word-spacing: value;

Possible values are

normal

length

Example:

These words are spaced at 5px.

 

 

 

 

Registration


A password will be e-mailed to you.

Feedback Form

Name (required)

Email (required)

Feedback