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 488k
  • Answers 488k
  • 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 The soft keyboard can be tricky sometimes. I belive the… May 16, 2026 at 8:38 am
  • Editorial Team
    Editorial Team added an answer SUDS performance does breakdown on large WSDL files. I have… May 16, 2026 at 8:38 am
  • Editorial Team
    Editorial Team added an answer You don't have to use an NSMutableString for this. Add… May 16, 2026 at 8:38 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
Possible Duplicate: Useful Regular Expression Tutorial Hello, I recently started coding in javascript. I
I recently started work on a personal coding project using C++ and KDevelop. Although
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
I programmed a CMS that has a log of who has recently logged into
I was recently coding a small java program (as design for an 8086 Assembler
I've done a bunch of Java coding recently and have got used to very
Recently I've been doing lots of weekend coding, and have began to really need
recently I have been trying my hand at coding a game in C#. I'm

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.