CSS properties - letter-spacing

revision:


letter-spacing property

- increases or decreases the space between characters in a text.

CSS syntax : letter-spacing: normal | length | initial | inherit;

Property values:

normal : defines normal space between characters. This is default

length : defines a length that is used as the space between characters (negative values are also allowed).

initial : sets this property to its default value.

inherit : inherits this property from its parent element.

JavaScript syntax: object.style.letterSpacing="0.3vw"

example: letter-spacing property

This is heading 1

This is div element

This is heading 4

code:
                    <div>
                        <h1 id="H1-a">This is heading 1</h1>
                        <div id="Div-2">This is div element</div>
                        <h4 id="H4-a">This is heading 4</h4>
                    </div>
                    <style>
                        #H1-a{position: relative; left: -10vw; letter-spacing: 0.3vw;}
                        #Div-2{letter-spacing: 1vw;}
                        #H4-a{letter-spacing: -0.1vw;}
                    </style>