html - Email with anchor link doesn't work on gmail, and indexed my "#" link? -
i designing e-newsletter effect like this per client's instructions.
i know there no way use javascript in email, i've tried make in stupid way, using overflow:hidden
, anchor tags. when click appropriate link, hidden image scroll visible area. here's code:
<!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>demot</title> <style type="text/css"> .of { display:block; max-height: 100px; overflow: hidden; white-space:nowrap; } </style> </head> <body> <!-- save web slices (news_letter_artwork.jpg) --> <table id="table_01" width="595" height="434" border="0" cellpadding="0" cellspacing="0"> <tr> <td colspan="5"> <img src="images/news_letter_artwork_01.jpg" width="595" height="155" alt=""></td> </tr> <tr style="display:block;"> <td> <img src="images/news_letter_artwork_02.jpg" width="50" height="37" alt=""></td> <td> <a href="#tab_01"><span><font><img src="images/news_letter_artwork_03.jpg" width="118" height="37" alt=""></font></span></a></td> <td> <a href="#tab_02"><span><img src="images/news_letter_artwork_04.jpg" width="118" height="37" alt=""></span></span></a></td> <td> <a href="#tab_03"><span><img src="images/news_letter_artwork_05.jpg" width="121" height="37" alt=""></span></span></a></td> <td> <img src="images/news_letter_artwork_06.jpg" width="188" height="37" alt=""></td> </tr> <tr style="display:block; max-width: 595px; max-height: 186px; overflow: hidden; white-space:nowrap;"> <td colspan="5"> <h2><a name="tab_01" id="tab_01"></a></h2><img src="images/news_letter_artwork_07.jpg" width="595" height="186" alt=""><p> <h2><a name="tab_02" id="tab_02"></a></h2><img src="images/news_letter_artwork_07b.jpg" width="595" height="186" alt=""><p> <h2><a name="tab_03" id="tab_03"></a></h2><img src="images/news_letter_artwork_07c.jpg" width="595" height="186" alt=""><p> </td> </tr> <tr> <td colspan="5"> <img src="images/news_letter_artwork_08.jpg" width="595" height="56" alt=""></td> </tr> </table> </body> </html>
concerning of client won't support in div tag, i've tired use table make it, actually, everything's work in browser, <a>
tag's href
replaced in email client #tab_01
http://mydomain/news.html#tab_01
.
when click on email client, opens new browser window not @ want. possible fixed?
here's sending email procedure:
- upload whole website server
- open page
- select , copy
- paste compose windows, , send.
have done wrong? i've tested gmail, hotmail (outlook.com), yahoo, apple mail, outlook 2011 mac.
i think isn't possible achieve goal.
email clients doesn't support style tag in head or body(especially gmail), mentioned - can't use events or selectors in inline css. can't done through :focus selector.
as reference can give link of css supported email clients(web-based , not)
Comments
Post a Comment