Total members 11372 |It is currently Fri Oct 31, 2014 9:35 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R

All times are UTC [ DST ]



  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>

 


_________________
Please recommend / share my post if you found it helpful.


Author:
Mastermind
User avatar Posts: 2694
Have thanks: 73 time
Post new topic Reply to topic  [ 1 post ] 

  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     -  
 convert word, Excel to PDF     -  
 C# Word Styling Automation     -  
 Simple Word Program     -  
 java code to open word doc attached in ms access.db     -  

All times are UTC [ DST ]



Topic Tags

HTML Paragraph






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team