{"id":198851,"date":"2015-04-03T08:32:08","date_gmt":"2015-04-03T15:32:08","guid":{"rendered":"http:\/\/css-tricks.com\/?page_id=198851"},"modified":"2021-08-02T11:07:02","modified_gmt":"2021-08-02T18:07:02","slug":"text-decoration-style","status":"publish","type":"page","link":"https:\/\/css-tricks.com\/almanac\/properties\/t\/text-decoration-style\/","title":{"rendered":"text-decoration-style"},"content":{"rendered":"\n

The text-decoration-style<\/code> property sets the style of the underline on links and the underline, overline, or line-through on any text with text-decoration<\/a><\/code> applied.<\/p>\n\n\n\n

a {\n  text-decoration-style: solid;\n}<\/code><\/pre>\n\n\n

Values<\/h3>\n\n\n
  • solid<\/code>: the default. Decoration is a single solid line.<\/li>
  • double<\/code>: Decoration is a pair of solid lines.<\/li>
  • dotted<\/code>: Decoration is a dotted line.<\/li>
  • dashed<\/code>: Decoration is a dashed line.<\/li>
  • wavy<\/code>: Decoration is a wavy line.<\/li><\/ul>\n\n\n

    Demo<\/h3>\n\n\n

    At the time of this writing, text-decoration-style<\/code> is only officially supported in Firefox. It will also work in Chrome browsers with the experimental web platform features flag enabled.<\/p>\n\n\n\n