Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 924525
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:22:03+00:00 2026-05-15T19:22:03+00:00

Recently when coding and HTML email, I noticed that Yahoo! started hijacking certain links

  • 0

Recently when coding and HTML email, I noticed that Yahoo! started hijacking certain links and keywords, adding a <span class='yshortcuts'> which changes the colors of the text and links, which can cause some pretty bad rendering problems.

The ‘fix’ that Yahoo! suggested is pretty ugly (adding a span within all of the links and keywords that are affected) – far from an easy universal solution, especially when they apply the style to seemingly arbitrary text.

I am wondering if it is possible to simply over ride their class, and some how, with css, remove the color attribute. (While <style> blocks aren’t supported in all major email platforms, Yahoo! does…and the ones that don’t support it, gracefully ignore it.)

Something like
<style>
.yshortcuts{color:none;}
</style>

I know that color:none; isn’t valid, and doesn’t work universally.

Any Ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-15T19:22:04+00:00Added an answer on May 15, 2026 at 7:22 pm

    After digging and slogging it seems this is the best way to handle the problem (to my mind).

    1. At top of the email, add this style block. This will fix most of the problems in most browsers.

      <style>
      .yshortcuts{color:inherit;}
      </style>
      
    2. Since we want IE people to be happy too, insert a span, with a color style, inside each <a> that is causing problems. E.g.:

      <a href="http://google.com" style="#c912dc"><span style="#c912dc">Google</span></a>
      

    This should, fix it in almost all situations.

    Since this can be a pain to do by hand if you have a file already coded, you can do a regex find/replace and it should help speed things up (but your mileage may vary…works in Textmate):

    Find:

    (<a[^>]*style=".*color:#(\w{6}).*".*>)(.+)(</a>)
    

    Replace:

    $1<span style="color:#$2;">$3</span>$4
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 492k
  • Answers 492k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Assuming that you mean the <input type="file"> browse button, see… May 16, 2026 at 10:22 am
  • Editorial Team
    Editorial Team added an answer @ has been around since the days of @import in… May 16, 2026 at 10:22 am
  • Editorial Team
    Editorial Team added an answer Personally, if I wanted to write a complex and interesting… May 16, 2026 at 10:22 am

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Related Questions

I've just recently started learning HTML/CSS and I've been trying to teach myself sound
I've recently started exploring using AJAX for a small project, and I've had reasonable
I'm helping a colleague with a recurring issue that's just started happening to multiple
Recently a client was concerned that their SWF was insecure because the XML path
Recently, I read this article: http://download.oracle.com/javase/tutorial/extra/generics/wildcards.html My question is, instead of creating a method
Recently i've switched to PHP 5.3+ and after that migration i learned that the
Recently I've started hearing about POJOs (Plain Old Java Objects). I googled it, but
Recently I've started to develop Android Soft Keyboard and got some problem with preferences.
I'm an Information Architect and JavaScript developer by trade nowadays, but recently I've been
I used many different browsers while I was coding for a new site (Firefox,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.