Text Decoration
You can “decorate” text with CSS—that is, apply or remove a particular decorative value. This is done using the text-decoration property, with values as follows:
-
none— This is used primarily to remove the default underlines from links. See Chapter 10, “Link Effects, Lists, and Navigation.” -
underline— This places a line underneath the selected text. Usability specialists tend to shun underlined text because it can be confused with linked text. -
overline— This places a line above the selected text. -
line-through— This places a line through the selected text. -
blink— Yep, you read that right. This causes text to blink, a feature that was introduced (and used to the point of pain) by Netscape in the early days. It works in ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access