Im trying to send a HTML email and I have this piece of code:
<a href="#">UP ;<img src="arrow.png" /></a></div>
But theres a blue border JUST around my image. How can I get rid of it. Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
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.
Unfortunately, the best solution is to use the deprecated
borderattribute since not all email readers parse/apply CSS… as a separate style section, a separate sheet, or embedded in the HTML. If you have a guaranteed audience (all using the same email viewer) then by all means use CSS if you can.For testing here’s a simple HTML document that should show all the proposed solutions:
In my browser (Firefox) 1,2,4 show borders (default border on 1,4 is thicker), while 3,5,6 show none… however 5 & 6 rely on the email client being able to parse CSS, 6 in particular can get really dodgy with webmail clients (which mess around with style classes on base elements because they have their own CSS).