Topic: problem using mail_to with image_tag as argument.

Hello everybody,

Beginners question here.
I'm creating a simple music blog.
Each post should have an envelope icon that, when clicked, opens the mail program with the correct email address.

I have the following line in my index.html.erb:
<%= mail_to("musicblog@gmail.com", image_tag("email.gif")) %>

This works, except for that in my browser there's a black square around the envelop icon and just a black underlining when hovering over it.
I guess this is a css problem and i've tried many possible solutions, but it seems i'm unable to fix it.

If someone could give me a hint it would be greatly appreciated!

Last edited by MB77 (2008-09-22 10:15:10)

Re: problem using mail_to with image_tag as argument.

a img { border:0; }
a:hover img {text-decoration: none;}

Re: problem using mail_to with image_tag as argument.

Hello Duplex and thanks very much!!!