CSS Text Properties

Estimated reading: 1 minute 63 views

Inherited: Yes

Color

				
					color: value;
				
			

Letter Spacing

You can adjust the space between letters in the following manner.
Setting the value to 0, prevents the text from justifying. You can use
negative values.

				
					 letter-spacing: value;

				
			

Example:
T h e s e l e t t e r s a r e spaced at 5px.

Text Align

You can align text with the following:

				
					 text-align: left or right or center;

				
			

Text Decoration

You can decorate text with the following:

				
					 text-align: left or right or center;

				
			

Possible values are

  • none
  • underline
  • overline
  • line through  

 

Examples:
This text is underlined.
This text is overlined.
This text has a line through it

 

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

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

Share this Doc

CSS Text Properties

Or copy link