class button issue

Hi there,

I have been building a nice html email bullet proof button to include a nice call to action in my latest email design.
I added a button class to the code.

class="button"

It works well everywhere I tested it and, as I use background images, if they are not supported it just shows a flat colourful button with html text.

As I was testing I found out that Yahoo Mail Classic add around the link of my button an horrible well ugly and grayish html button element.

I changed the class name form button to _button and the ugly button is gone now.

class="_button"

Just thought I might let you know if ever somebody would like to add some button classes some days.

Mathew Mathew, 8 years ago

That's a very interesting discovery, thanks for posting.


Get in touch with us on Twitter: http://twitter.com/campaignmonitor
We're also on Facebook: http://facebook.com/campaignmonitor
zapatoche, 8 years ago

For the people who loves fun i found out that:

class="_button" doesn't support :hover in IE 5/6 and Outlook, but class="button" does.


So I changed my class name completely.

200,000 companies around the world can't be wrong.

From Australia to Zimbabwe, and everywhere in between, companies count on 
Campaign Monitor for email campaigns that drive real business results.

Get started for free
1-888-533-8098