FeedCity logo

FeedCity

Adactio

The online home of Jeremy Keith, an author and web developer living and working in Brighton, England.

  • Not verified Not verified.
  • No WebSub updates. No WebSub updates.
  • Valid.

Managing Editor: Jeremy Keith

Webmaster: Jeremy Keith

Adactio

Underlines and line height

I was thinking about something I wrote yesterday when I was talking about styling underlines on links:

For a start, you can adjust the distance of the underline from the text using text-underline-offset. If you’re using a generous line-height, use a generous distance here too.

For some reason, I completely forgot that we’ve got a line-height unit in CSS now: lh. So if you want to make the distance of your underline proportional to the line height of the text that the link is part of, it’s easy-peasy:

text-underline-offset: 0.15lh;

The greater the line height, the greater the distance between the link text and its underline.

I think this one is going into my collection of CSS snippets I use on almost every project.

Adactio

Style your underlines

We shouldn’t rely on colour alone to indicate that something is interactive. Take links, for example. Sure, you can give them a different colour to the surrounding text, but you shouldn’t stop there. Make sure there’s something else that distinguishes them. You could make t...

Adactio

Session talk

I was in Nor’n Irelan’ at the end of July for my annual week of Belfast Tradfest. It was the best one yet. Classes in the morning, sessions all day, and concerts in the evening. There were also some excellent events at Ulster University during the afternoons—talks, film sc...

Adactio

Progressive web apps

There was a time when you needed to make a native app in order to take advantage of specific technologies. That time has passed. Now you can do all of these things on the web: push notifications, offline storage, camera access, and more. Take a look at the home screen o...

Adactio

Curate your own newspaper with RSS

citationneeded.news/curate-with-rss/

I’m almost certainly preaching to the choir here because I bet you’re reading these very words in a feed reader, but what Molly White has written here is too good not to share:

RSS offers readers and writers a path away from unreliable, manipulative, and hostile platforms and intermediaries. In a media landscape dominated by algorithmic feeds that aim to manipulate and extract, sometimes the most radical thing you can do is choose to read what you want, when you want, without anyone watching over your shoulder.

adactio.com/links/22070

Adactio

Vibe code is legacy code | Val Town Blog

blog.val.town/vibe-code

When you vibe code, you are incurring tech debt as fast as the LLM can spit it out. Which is why vibe coding is perfect for prototypes and throwaway projects: It’s only legacy code if you have to maintain it!

The worst possible situation is to have a non-programmer vibe code a large project that they intend to maintain. This would be the equivalent of giving a credit card to a child without first explaining the concept of debt.

If you don’t understand the code, your only recourse is to ask AI to fix it for you, which is like paying off credit card debt with another credit card.

adactio.com/links/22069