CSS Word Spacing


Prev Tutorial Next Tutorial

CSS Word Spacing

CSS Word Spacing properties are used for give sufficient space between two words on web page.

You can give space between two word on web page by using these two size format;

  • px
  • em

CSS word-spacing values

ValueDescription
normalThis is a default value. it specifies a normal word-spacing.
initialIt sets this property to its default value.
inheritIt inherits this property from its parent element.

Example

<!DOCTYPE html>  
<html>  
<head>  
<style>  
p.px {  
    word-spacing: 10px;  
}  
p.em {  
    word-spacing: 2.2em;  
}   
</style>  
</head>  
<body>  
<p class="px">This is my first html with css code.</p>  
<p class="em">This is my first html with css code.</p>  
</body>  
</html>

Result

This is my first html with css code.

This is my first html with css code.

Browser supported

Properties
word-spacingYesYesYesYesYes

Prev Tutorial Next Tutorial

Google Advertisements
Download Projects

Google Adsense Advertisements
Free Classified Site – Bedpage

Yahoo Advertisements