Switch to full style
HTML code examples
Post a reply

Change the letter spacing of the words

Thu Feb 23, 2012 12:36 pm

In this example we change the letter spacing using CSS attribute letter-spacing .

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

p
.BigLetterSpacing {
  letter-spacing: 1.5em;
}

p.SmallLetterSpacing {
  letter-spacing: -0.2ex;
}
</
style>


</
head>
     
<body>
     <p>
      In this example we show the usage of 
      the letter spacing CSS attribute on the words
. 
     
</p>
<
p class="BigLetterSpacing">
This paragraph uses big letter spacing value
</p>
<
p class="SmallLetterSpacing">
This paragraph uses small letter spacing value
</p>
 
</body>
</
html>

 




Post a reply
  Related Posts  to : Change the letter spacing of the words
 Change the word spacing in paragraph     -  
 enlarge first letter in html paragraph     -  
 sort words in c++     -  
 Breaking the String into Words     -  
 probability of repeated words     -  
 get number of words in a string     -  
 Return words count in a string     -  
 change the style of the kbd     -  
 Change the properties of div tag     -  
 How to change the JAR Icon     -  

Topic Tags

HTML Paragraph