CSS Word Spacing

Advertisements

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 Advertisment

Buy This Ad Space @$20 per Month, Ad Size 600X200 Contact on: hitesh.xc@gmail.com or 9999595223

Magenet is best Adsense Alternative here we earn $2 for single link, Here we get links ads. Magenet

For Projects 9999595223

Google Advertisements


Buy Websites 9999595223

Buy College Projects with Documentation Contact on whatsapp 9999595223. Contact on: hitesh.xc@gmail.com or 9999595223 Try this Keyword C++ Programs

Advertisements