Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. table inside a href=".." Question?

table inside a href=".." Question?

Scheduled Pinned Locked Moved ASP.NET
questionhtmltools
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    mrcooll
    wrote on last edited by
    #1

    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.

    J S 2 Replies Last reply
    0
    • M mrcooll

      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.

      J Offline
      J Offline
      jbracken1973
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      • M mrcooll

        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.

        S Offline
        S Offline
        Samer Aburabie
        wrote on last edited by
        #3

        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 !

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups