1 reply [Last post]
Chris22
Offline
newbie
Last seen: 8 years 38 weeks ago
Timezone: GMT-5
Joined: 2012-01-26
Posts: 1
Points: 2

When a user clicks on the "send email" button, their default email application opens with the subject line: Request Information".

Can anyone tell me why this "mailto:" code will not work in IE7/8? It works correctly in FF, Chrome and Safari. I don't want to have to wrap up my image in an anchor tag, unless there's no other way.

HTML

<a href="mailto:[email protected]?subject=Request%20Information" class="info-main">Send email</a>

CSS

.info-main {
    background-image:url('/i/info_email_button.png') no-repeat;
    display:block;
    height:123px;
    width:24px;
    text-indent:-9999px;
}

Thanks!

thepineapplehead
thepineapplehead's picture
Offline
Guru
Last seen: 31 weeks 4 hours ago
Joined: 2004-06-30
Posts: 9668
Points: 801

How do you mean "doesn't

How do you mean "doesn't work"? Where's the rest of the HTML?

Verschwindende wrote:
  • CSS doesn't make pies