Open Directory Site CSS Tutorials

ASP | XML | VBScript | JavaScript | ADO | CSS | XMLDOM | PHP | Operating Systems

Home >> CSS >> CSS Text Properties

CSS Text Properties

 

CSS Text properties defines the appearance of text.

Examples

Set the color of the text

This example demonstrates how to set the color of the text.

Specify the space between characters

This example demonstrates how to increase or decrease the space between characters.

Align the text

This example demonstrates how to align the text.

Decorate the text

This example demonstrates how to add decoration to text.

Indent text

This example demonstrates how to indent the first line of a paragraph.

Control the letters in a text

This example demonstrates how to control the letters in a text.

CSS Text

Text properties allow you to control the appearance of text. It is possible to change the color of a text, increase or decrease the space between characters in a text, align a text, decorate a text, indent the first line in a text, and more.

Text Properties:

NN: Netscape, IE: Internet Explorer, W3C: Web Standard

Property Description Possible Values NN IE W3C

color Sets the color of a text color 4.0 3.0 CSS1

direction Sets the text direction ltr rtl CSS2

letter-spacing Increase or decrease

the space between

characters

normal length 6.0 4.0 CSS1

text-align Aligns the text in an element

left

right

center

justify 4.0 4.0 CSS1

text-decoration Adds decoration to text

none

underline

overline

line-through

blink 4.0 4.0 CSS1

text-indent Indents the first line

of text in an element

length % 4.0 4.0 CSS1

text-shadow

none

color

length

text-transform Controls the letters in an element

none

capitalize

uppercase

lowercase 4.0 4.0 CSS1

unicode-bidi normal

embed

bidi-override 5.0 CSS2

white-space Sets how white space inside an

element is handled

normal

pre

nowrap 4.0 5.5 CSS1

word-spacing Increase or decrease the

space between words

normal

length 6.0 CSS1

 

Cheap Web Hosting Articles - Web Site Design & Web Hosting Tutorials - Domain Hosting