css  letter-spacing property

the css letter-spacing property used to increases or decreases the space between characters in a text.

the css letter spacing property syntax :-

		letter-spacing:   normal  |  length  |  inherit   ;
letter-spacing
default valuenormal
applies toall elements
inheritedyes
mediavisual
version:css1

browser support - css letter-spacing

the letter-spacing property is supported in all major browsers.

note:- the ie8 requires a !doctypeinternet explorer 9 supports the 'inherit' value.


css letter spacing example

            
            <style  type="text/css">
            
       h1{
       	        letter-spacing:1px;;
       	        
        	    font-size:15px;
        	    
            	font-style:normal;
            	
            	font-family:"times new roman",georgia,serif;
            }
            
       h2{
       	    	letter-spacing:5px;;
       	    	
        	    font-size:15px;
        	    
            	font-style:normal;
            	
            	font-family:"times new roman",georgia,serif;            	
       }
         
       h3{
                letter-spacing:9px;;
                
            	font-size:15px;
            	
              	font-style:normal;
              	
            	font-family:"times new roman",georgia,serif;
            	
            }</style>

note :- a negative length value decreases the space between characters.

note :- a positive length value increases the space between characters.


css letter-spacing property values

property/valuedescription
normalthe spacing is the normal spacing for the current font.
lengthdefines an extra space between characters.negative values are allowed.
inheritspecifies that the value of the letter-spacing property should be inherited from the parent element.