Switch to full style
HTML code examples
Post a reply

Change the word spacing in paragraph

Thu Feb 23, 2012 12:18 pm

In the following example we show how to change the word spacing using CSS attribute word-spacing.

Code:
<html xmlns="http://www.w3.org/1999/xhtml">
<
head>
<
title>Word spacing in paragraph</title>
<
meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<
style type='text/css'>
 

p.BigWordSpacing {
  
word-spacing4em;
}

p.SmallWordSpacing {
  
word-spacing: -0.6ex;
}
</
style>


</
head>
     
<
body>
     <
p>
      
In this example we show the usage of 
      the word spacing CSS attribute on the text

     </
p>
<
class="BigWordSpacing">This paragraph uses big word spacing value</p>
<
class="SmallWordSpacing">This paragraph uses small word spacing value</p>
 
</
body>
</
html>

 




Post a reply
  Related Posts  to : Change the word spacing in paragraph
 Change the letter spacing of the words     -  
 change background of the paragraph     -  
 Change the margin and padding of paragraph     -  
 Change the text indent in the paragraph     -  
 word counts in php     -  
 Word & ASP.Net ISSUE     -  
 Simple Word Program     -  
 convert word, Excel to PDF     -  
 C# Word Styling Automation     -  
 java code to open word doc attached in ms access.db     -  

Topic Tags

HTML Paragraph