Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS mailto link on image not working in IE

  • This topic is empty.
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #36327
    Chris22
    Member

    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

    Send email

    CSS

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

    }

    Thanks!

    #95484
    TheDoc
    Member

    Just tested it, works fine for me in both IE7 and IE8.

    #95485
    JohnMotylJr
    Participant

    Not sure if this is your problem but to concatenate the subject with an ampersand ‘&’


    Send email

    Directly from my coming soon page, works in IE7 / IE8 in IETester



    Just tested in IE 6 as well… It is odd that it works in FireFox, Chrome, and Safari but not IE considering its just a ‘mailto:’

    #95486
    Chris22
    Member

    Thanks, everyone. You are right, I asked a few people to test it and it does work in IE7/8. My local copy of IE8 is buggy/corrupted, I guess.

    #95487
    Chris22
    Member

    Does anyone know of a better way to make an image link without using text-indent property? I’ve been told its a little dated. Thanks!

    #95490
    TheDoc
    Member

    I see nothing wrong with the method that you have used.

    #95497
    JohnMotylJr
    Participant

    @TheDoc,

    Are there multiple ways to concatenate the mailto: (&) and/or (?) to the subject line?

    #95499
    TheDoc
    Member

    Not a clue, I’m pretty sure they are interchangeable in this specific case.

    #95508
    Chris22
    Member

    @_John_, I read online (can’t remember the link) where it is more “secure” to use the title tag instead of subject property. I’ve also seen "&" used.

    #95509
    Chris22
    Member

    @TheDoc, thanks.

Viewing 10 posts - 1 through 10 (of 10 total)
  • The forum ‘CSS’ is closed to new topics and replies.