H I O X INDIA
FREE CSS Tutorial
Google
Web hscripts.com
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Directories 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)   Bookmarks :-)  
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

CSS Topics
Introduction
Types
Background Properties
Text Properties
Font Properties
BOX Properties
Border Properties
Margin Properties
Padding Properties
Special Topics
Ask Your Doubts
Feedback





CSS Word Spacing


Topic

How to have a larger space between words in html?
I want to manage to spacing between words in html?



Explanation


Property: Word Spacing

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

Definition:
Using this attribute we can define or set the space between each words.
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="word-spacing: 1cm;"> Test for word spacing </font>

Result:
Test for word spacing

Example 2:
<div style="word-spacing: 10px;"> Test for word spacing </div>

Result:
Test for word spacing


Example 3:
<h5 style="word-spacing: 10pt;"> Test for word spacing </h5>

Result:
Test for word spacing

Example 4:
<font style="word-spacing: none;"> Test for word spacing </font>

Result:
Test for word spacing








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.


privacy policy     license     sitemap
© 2004-2005 HIOX INDIA - hioxindia.com