Total members 11895 |It is currently Sun Dec 22, 2024 3:35 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





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>

 




_________________
M. S. Rakha, Ph.D.
Queen's University
Canada


Author:
Mastermind
User avatar Posts: 2715
Have thanks: 74 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 text indent in the paragraph     -  
 Change the margin and padding of 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     -  



Topic Tags

HTML Paragraph
cron





Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com