Now let us see other font-relative value for the letter-spacing property such as “em” which usually allows the spacing which is relative to the font size. In the above example, we can see that the last statement specifies “-1.5px” where it displays the sentence which is not clear at all. In the above example, we have specified the values of letter-spacing property in positive or negative pixel values where positive values are clear than negative pixel values. This paragraph has letter-spacing: negative pixel values Įxplanation: In the above program, we have seen that we are specifying the letter-spacing value using pixel values. This paragraph has letter-spacing: decimal values This paragraph has letter-spacing: positve pixel values Now let us see an example of pixel values that can be specified for the letter-spacing property for the set of characters. This value gives the normal spacing between the letters and is easily readable. In many cases, letter-spacing value with normal value is the default value. This paragraph has letter-spacing: normal Įxplanation: In the above program, we can see that we have set the paragraph text to have normal value for space between the letters. Let us see an example of the letter-spacing property as normal. em: This specifies the relative font size. inherit: This value inherits the value from its parent element.initial: as the name suggests it uses the value specified at the beginning or it will take the default value.length: in this, it specifies some extra spaces where we can also specify negative values in this.normal: this means the letter spacing is normal where no extra spaces are provided and this value is the default value.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |