16 September 2017

CSS Word Spacing


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>







Start typing and press Enter to search