problem in HTML Table "border=0" it takes space

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ramprabu
    New Member
    • Feb 2007
    • 10

    problem in HTML Table "border=0" it takes space

    Hello,

    I will give the sample code of html. Here first table only apply border 1 width. other tables are border 0. The problem is border=0 means border was not visible but it takes white border space. I want to remove this space. How can I solve?

    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head runat="server">
    <title>Untitl ed Page</title>
    </head>
    <body>
    <form id="form1" runat="server">
    <div>
    <table border=1><tr><t d>
    <table border=0><tr><t d>
    <table border=0><tr><t d>
    <table border=0><tr><t d>
    <table border=0><tr><t d>
    <table border=0><tr><t d>
    MY TEST
    </td></tr></table>
    </td></tr></table>
    </td></tr></table>
    </td></tr></table>
    </td></tr></table>
    </td></tr></table>
    </div>
    </form>
    </body>
    </html>
  • Tog
    New Member
    • Feb 2007
    • 11

    #2
    Hello,

    This is a complex way of achieving a simple display.

    You really should try to get what you want by using CSS instead of nesting tables in this way.

    Regards

    Tog

    Comment

    • AricC
      Recognized Expert Top Contributor
      • Oct 2006
      • 1885

      #3
      Originally posted by ramprabu
      Hello,

      I will give the sample code of html. Here first table only apply border 1 width. other tables are border 0. The problem is border=0 means border was not visible but it takes white border space. I want to remove this space. How can I solve?

      <html xmlns="http://www.w3.org/1999/xhtml" >
      <head runat="server">
      <title>Untitl ed Page</title>
      </head>
      <body>
      <form id="form1" runat="server">
      <div>
      <table border=1><tr><t d>
      <table border=0><tr><t d>
      <table border=0><tr><t d>
      <table border=0><tr><t d>
      <table border=0><tr><t d>
      <table border=0><tr><t d>
      MY TEST
      </td></tr></table>
      </td></tr></table>
      </td></tr></table>
      </td></tr></table>
      </td></tr></table>
      </td></tr></table>
      </div>
      </form>
      </body>
      </html>
      This doesn't look like a valid table syntactically.

      Comment

      Working...