{"id":993,"date":"2019-11-10T21:01:51","date_gmt":"2019-11-11T01:01:51","guid":{"rendered":"https:\/\/bostonianadam.com\/?p=993"},"modified":"2023-01-04T18:31:43","modified_gmt":"2023-01-04T23:31:43","slug":"new-css-to-style-underlines","status":"publish","type":"post","link":"https:\/\/bostonianadam.com\/2019\/11\/new-css-to-style-underlines\/","title":{"rendered":"New CSS to style underlines"},"content":{"rendered":"\n

Mozilla’s Jen Simmons posted a video on YouTube recently talking about some new CSS for styling underlines, “text-underline-offset,” “text-decoration-thickness,” and “text-decoration-skip-ink.” The video I am referring to is embedded below and I added a few simple code examples down below as well.<\/p>\n\n\n\n

I think these new styles will be useful and web developers can now stop using CSS borders to style underlines (for those that do) and use this new CSS instead. Just a heads up though, as Jen mentions in her video, that right now this new CSS only works in the Mozilla Firefox and Safari (and maybe soon in Chrome) web browsers.<\/p>\n\n\n\n

Video: New CSS for Styling Underlines on the Web<\/h4>\n\n\n\n
\n