Urgent.News

What's breaking now, across thousands of outlets.

Tech

CSS for underlines

Underlined text has long been a challenge in HTML and CSS. The colour of the underline could only be inherited from the text. The CSS specification did not define an underline thickness, leaving it up to individual browser vendors to determine how to derive it. This resulted in some browsers rendering thicker underlines than others, particularly at larger font sizes.

For years, the workaround was to avoid underlines altogether and use a border as a pseudo underline. However, this approach was deemed inelegant and unsightly, as underlines should cross characters with descenders like g and y, but borders do not. Fortunately, beginning in 2019, new attributes have allowed for more flexibility in styling underlines.

All major browser vendors have now implemented these attributes, providing a more consistent and visually appealing way to style underlined text.

Written by urgent.news from Lobsters's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at rubenerd.au →

More in Tech

Nature Quest (pocket edition): Bring Mindfulness Outdoor.

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass . Nature Quest (pocket edition) is taking Gemma 4 E2B outside into the outdoor environment with no internet…

  • Nature Quest is an offline Android app for mindfulness
  • Users take photos, receive 3-part outdoor action plan
  • Local Gemma 4 E2B model generates specific, safe activities

Khoj: Step Outside With a Question, Come Back With a Story

This is a submission for the Hacktoberfest Open-Source AI Challenge Week 1: Touch Grass Khoj (खोज) — Don't Follow the Map. Follow Your Curiosity.

  • Khoj turns city walks into curiosity-driven adventures.
  • App encourages users to engage with the world around them.
  • Offline-first functionality works without reliable connectivity.

More from Monday 12 October →