• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. Styling Text > Text Decoration

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 all contemporary browsers but Internet Explorer.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint