table inside a href=".." Question?
-
hi all, m trying to create email newsletter , and m putting content of the newsletter in a table and i want the user to be able to click on the table content to go to some link, it works fine on chrome but not in IE , here is my code. //Email body is html format <%-- <a href='someurl'> '<table> 'newsletter data '</table> '</a> --%> and i forget something ,we cant but any script "onclick();" here because it will be disable by email engine . thanks for all.
-
hi all, m trying to create email newsletter , and m putting content of the newsletter in a table and i want the user to be able to click on the table content to go to some link, it works fine on chrome but not in IE , here is my code. //Email body is html format <%-- <a href='someurl'> '<table> 'newsletter data '</table> '</a> --%> and i forget something ,we cant but any script "onclick();" here because it will be disable by email engine . thanks for all.
I don’t think you can put a table inside a link, it is not a standard (W3C) so browsers will translate it differently. Instead put your link in your cell. Then perhaps use a style to make it not look like a link. <table border="1"> <tr> <td> <a href="http://www.codeproject.com" style="text-decoration:none; color:Black; display:block;"> This is my news letter </a> </td> </tr> </table>
[This is my news letter](http://www.codeproject.com)
PS.. If you are trying to trick the end user to go to your site, many of them now require you to hold down a button to follow the link. John -
hi all, m trying to create email newsletter , and m putting content of the newsletter in a table and i want the user to be able to click on the table content to go to some link, it works fine on chrome but not in IE , here is my code. //Email body is html format <%-- <a href='someurl'> '<table> 'newsletter data '</table> '</a> --%> and i forget something ,we cant but any script "onclick();" here because it will be disable by email engine . thanks for all.
Hi there, First of all table control cant be nested in (a) tag (this will not make the content clickable), second of all you should be using tr and td tags within a table ... To solve this you could use the following example: <table> <tr> <td> <a href="Home.aspx">Hit Me</a> </td> </tr> </table> Here you are nesting the (a) element inside the table element in which it will be clickable according to the behaviour you want. Hope that helped !
Sincerely Samer Abu Rabie Imagination is more important than knowledge !