The absolute easiest way to beat blue links in emails on iOS

Over the years I’ve used lots of different methods for banning blue links. As with every method I use in email development, they gradually get simpler and better as time goes by.

Never has that been truer than about fixing the issue when dates, addresses and phone numbers are automatically linked on iPads and iPhones but they are styled with a default blue underline that looks terrible in anything except a personal text-only email.

Fixing this used to involve wrapping things in spans or adding classes, but that is annoying and also not helpful when you’re coding a reusable template since the added text will routinely include numbers, addresses and dates.

These days, I fix this by targeting the x-apple-data-detectors property that is added to these automatic links and setting them to simply inherit the styles around them.

And that’s it. If there are any other properties you want them to inherit, just go ahead and add them.

Au revoir, blue links!

I came across this trick viewing a source on an email a while ago, so I’m not entirely sure who I can credit for it, but there is more on the method here and here.

Published by

Nicole Merlin

I'm an HTML email designer and developer from Melbourne, Australia. I love email, design, typography, calligraphy and curling up with a book.

  • Super simple. I’ve started styling links in the section to default all links to a certain style. It’s now just Gmail that can be a bit of a problem.

  • Great idea! You just saved me time because I had been thinking I should run a big test on link styling and what exactly is still required these days. So thanks 🙂 Yahoo and have certainly both improved recently but of course it’s still good old Gmail that lags behind.

  • Deffo share the results of that test – be interesting to see what comes of it 🙂

  • Stig Morten Myre

    For Gmail, I’ve had luck with adding the selector “* [href]:not([style])” to the same CSS rule.

    It’s now just Google Apps and Inbox that can be a bit of a problem 🙂

  • Hey that’s super nifty! I can always rely on you for amazing tricks 🙂 Thanks!

  • Jay Yao

    Nice trick! Thank you for sharing!!

  • griselda foreman

    My business partners were looking for IRS W-3C last month and found a company that has lots of form templates . If people need IRS W-3C too , here’s

  • Krank Sabbani

    here my another issue. how to disable Event for date like (24.02.2017)
    Help me …………….