<text-style>¶
The <text-style>
CSS type represents styles that can be applied to text.
Warning
Not to be confused with the text-style
CSS rule that sets the style of text in a widget.
Syntax¶
A <text-style>
can be the value none
for plain text with no styling,
or any space-separated combination of the following values:
Value | Description |
---|---|
bold |
Bold text. |
italic |
Italic text. |
reverse |
Reverse video text (foreground and background colors reversed). |
strike |
|
underline |
Underline text. |
Examples¶
CSS¶
#label1 {
/* You can specify any value by itself. */
rule: strike;
}
#label2 {
/* You can also combine multiple values. */
rule: strike bold italic reverse;
}