\u201cAccidental CSS Resets\u201d<\/a> for more examples of this behavior.<\/p>\n","protected":false},"excerpt":{"rendered":"In my recent article about CSS underline bugs in Chrome, I discussed text-decoration-thickness and text-underline-offset, two relatively new and widely-supported CSS properties that give us more control over the styling of underlines. Let me demonstrate the usefulness of text-decoration-thickness on a simple example. The Ubuntu web font has a fairly thick default underline. We can […]<\/p>\n","protected":false},"author":245432,"featured_media":363622,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"sig_custom_text":"","sig_image_type":"featured-image","sig_custom_image":0,"sig_is_disabled":false,"inline_featured_image":false,"c2c_always_allow_admin_comments":false,"footnotes":"","jetpack_publicize_message":"A nice reminder from @simevidas about possible accidental resets using the CSS text-decoration shorthand property.","jetpack_is_tweetstorm":false,"jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":true,"jetpack_social_options":[]},"categories":[4],"tags":[868],"jetpack_publicize_connections":[],"acf":[],"jetpack_featured_media_url":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2022\/02\/text-decoration-none-devtools.png?fit=1098%2C534&ssl=1","jetpack-related-posts":[{"id":359838,"url":"https:\/\/css-tricks.com\/css-underlines-are-too-thin-and-too-low-in-chrome\/","url_meta":{"origin":363619,"position":0},"title":"CSS Underlines Are Too Thin and Too Low in Chrome","date":"January 4, 2022","format":false,"excerpt":"I\u2019ve encountered two bugs in Chrome while testing the new CSS text-decoration-thickness and text-underline-offset properties, and I want to share them with you here in this article. First, let's acknowledge one thing: Default underlines are inconsistent Let\u2019s add a text link to a plain web page, set its font-family to\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2021\/12\/default-link-underlines.png?fit=1200%2C561&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":245767,"url":"https:\/\/css-tricks.com\/styling-underlines-web\/","url_meta":{"origin":363619,"position":1},"title":"Styling Underlines on the Web","date":"October 10, 2016","format":false,"excerpt":"Styling the underlines that sit beneath links can be a tricky business, and I constantly forget what\u2019s the best approach depending on the situation. Thankfully however, John Jameson gets us up to speed in this guest post. There are a bunch of different ways to style underlines. Maybe you remember\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":295079,"url":"https:\/\/css-tricks.com\/styling-links-with-real-underlines\/","url_meta":{"origin":363619,"position":2},"title":"Styling Links with Real Underlines","date":"August 30, 2019","format":false,"excerpt":"Before we come to how to style underlines, we should answer the question: should we underline? In graphic design, underlines are generally seen as unsophisticated. There are nicer ways to draw emphasis, to establish hierarchy, and to demarcate titles. That\u2019s clear in this advice from Butterick\u2019s \"Practical Typography\": If you\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2019\/08\/underlines.png?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":295935,"url":"https:\/\/css-tricks.com\/link-underlines-that-animate-into-block-backgrounds\/","url_meta":{"origin":363619,"position":3},"title":"Link Underlines That Animate Into Block Backgrounds","date":"September 23, 2019","format":false,"excerpt":"It's a cool little effect. The default link style has an underline (which is a good idea) and then on :hover you see the underline essentially thicken up turning into almost what it would have looked liked if you used a background-color on the link instead. Here's an example of\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2018\/07\/link-pattern.png?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]},{"id":200249,"url":"https:\/\/css-tricks.com\/more-control-over-text-decoration\/","url_meta":{"origin":363619,"position":4},"title":"More Control over Text Decoration","date":"April 14, 2015","format":false,"excerpt":"Marie Mosley just finished up a revamping of the text-decoration property (and friends) in the Almanac. You're probably aware of this property. For instance, most default browser styles include underlined links by way of text-decoration: underline; - which you can remove with text-decoration: none;. But you may not be aware\u2026","rel":"","context":"In "Article"","img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":319655,"url":"https:\/\/css-tricks.com\/a-css-only-animated-wrapping-underline\/","url_meta":{"origin":363619,"position":5},"title":"A CSS-only, animated, wrapping underline","date":"August 21, 2020","format":false,"excerpt":"Nicky Meuleman, inspired by Cassie Evans, details how they built the anchor link hover on their sites. When a link is hovered, another color underline kinda slides in with a gap between the two. Typical text-decoration doesn't help here, so multiple backgrounds are used instead, and fortunately, it works with\u2026","rel":"","context":"In "Link"","img":{"alt_text":"","src":"https:\/\/i0.wp.com\/css-tricks.com\/wp-content\/uploads\/2020\/08\/link-underline-wrapping-gap-1.png?fit=1200%2C600&ssl=1&resize=350%2C200","width":350,"height":200},"classes":[]}],"_links":{"self":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/363619"}],"collection":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/users\/245432"}],"replies":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/comments?post=363619"}],"version-history":[{"count":3,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/363619\/revisions"}],"predecessor-version":[{"id":364274,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/posts\/363619\/revisions\/364274"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media\/363622"}],"wp:attachment":[{"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/media?parent=363619"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/categories?post=363619"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/css-tricks.com\/wp-json\/wp\/v2\/tags?post=363619"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}