CSS Tutorial





Español Français 中文 Deutsch Portuguese Japanese nederlands
   
 
CSS Topics
css tutorials Introduction
Types Types
Background Properties Background Properties
Text Properties Text Properties
Font Properties Font Properties
Box Properties BOX Properties
Border Properties Border Properties
Margin Properties Margin Properties
Padding Properties Padding Properties
Special Topics Special Topics
Forums Ask Your Doubts
Scraps More about CSS
Feedback Feedback
 




CSS Letter Spacing


Tutorials Css

Topic

How to manage the space between letters in html?




Explanation


Property: Letter Spacing

Usage:
letter-spacing: 1cm;
letter-spacing: 10pt;
letter-spacing: 10px;
letter-spacing: none;

Definition:
Using this attribute we can define or set the space between each letters.
It takes the following values.

a) cm : You can set the value in centimeters as 1cm etc...
b) px : You can set the value in pixels as 1px or 10px etc...
c) pt : You can set the value in points as 1pt or 2pt etc
d) norm : on setting norm, normal / default word spacing will be taken.

Example 1:
<font style="letter-spacing: 1cm;"> Testing Letter </font>

Result:

Testing Letter

Example 2:
<div style="letter-spacing: 10px;"> Testing Letter </div>

Result:

Testing Letter


Example 3:
<h5 style="letter-spacing: 10pt;"> Testing Letter </h5>

Result:

Testing Letter

Example 4:
<font style="letter-spacing: none;"> Testing space between letters </font>

Result:

Testing space between letters





A Note
CSS - Cascading Style Sheets can be used along with html tags as explained in this site. This simple CSS will help you to create much elegant and neat html web pages. This does not need any additional softwares or codings. All web browser are capable of handing CSS codes.

Note 2: If required you can using <span> instead of <div> tags. div tag will start and end on new lines. span will not exceed the tag area.
Other Links

web hosting