width: 1em; I hate the three horizontal bars on top. Check it out on Github. The text-decoration-* properties are far more intuitive than using other CSS properties to style underlines. Frontend Masters is the best place to get it. I believe CSS Design has a great future though it can’t solve all the problems yet and absolutely replace table design. The entire effect hinges on a couple CSS3 properties: box-shadow and text-shadow to be precise. 1.5 is perfectly legitimate per CSS1. The article is very interesting. And overall, you can fit the coding as you want as it is flexible and customizable. But there’s always room to improve things. links look. multiple lines, then only the Has anyone taken a look at it in IE on a PC. a:hover { border-bottom: 2px dotted orange }, This is fine for all the links, and far nicer than the boring unerline, which I wlays find hugs the word too closely. If you've found HTML Dog useful, please consider linking to us. CSS is a styling language, the semantic content of a page is supposed to be HTML so “it doesn’t use the text-decoration” arugments, which are rooted in “semantic inappropriateness” are a little misguided. See the Pen Underlines 5: box-shadow by John D. Jameson (@johndjameson) on CodePen. padding-bottom: 3px; text-decoration-skip looks as though it’s just following the bounding box of the glyph. Achieving this has traditionally required CSS tricks. If you want your underlines to really stand out from all the herd this set is a great place to start. Finally, I want to thank Dante for showing me that I’m not the only one to hit the submit button too soon. Thanks for contributing an answer to Stack Overflow! That's why we've assembled a handful of incredibly knowledgeable authors to take us under the hood in this four-part series. You can also use relative/absolute positions to position pseudo-element. You can create an inline SVG filter element that draws a line and then expands the text to mask out parts of the line we want to be transparent. Stuart R. wrote. Some people understand what CSS hacks are, and choose to use them in order to work around a particular browser’s deficiencies while still producing marketable, standards-based site designs. I haven’t tried this in other browsers. (Bolding helps those who cannot distinguish between colors.). Good for single lines, but not much else. After the ‘0’ length, the unit identifier is optional.”. Like all things it can ber used to benefit, or it can be abused. text-decoration-line (required) text-decoration-color; text-decoration-style (-ve margin magic is one of the biggest non-philosophical reasons why i switched to tableless design), A { By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy. Designers don’t always think about underline effects but there’s a lot you can do with typography and if you know your way around CSS then really, the sky’s the limit.   in a document. I just wanted to update any Safari 1.2 users out there that the animated underlines appear to work fine.