Text Decoration Css Examples
Sets the style of the text decoration like solid wavy dotted dashed double initial.
Text decoration css examples. The style rule em text decoration. Underline an underline is drawn beneath the inline text. Getting the message across in style.
If it will be dotted or wavy. A line above the text. It is an essential property of css that is used to decorate the content of the text it can add on the lines above under and over the text.
However the rule em text decoration. The text decoration property is used to add decoration to text in form of lines. In css3 the text decoration property is a shorthand for setting text decoration line text decoration color and text decoration style in one declaration.
Line color style. In this example we will use the text decoration property to add an underline in the div text. A line under the text.
Style defines how the line will be i e. Here line defines the type of line needed for the text whether it should be an underline an overline or a strikethrough. The absence of any of these values in the shorthand will set that.
Following is the general syntax to use the text decoration property. The entire paragraph would still be underlined. It greatly affects the mood of the reader.