By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,493 Members | 1,936 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,493 IT Pros & Developers. It's quick & easy.

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

ramprabu
P: 10
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>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table border=1><tr><td>
<table border=0><tr><td>
<table border=0><tr><td>
<table border=0><tr><td>
<table border=0><tr><td>
<table border=0><tr><td>
MY TEST
</td></tr></table>
</td></tr></table>
</td></tr></table>
</td></tr></table>
</td></tr></table>
</td></tr></table>
</div>
</form>
</body>
</html>
Feb 13 '07 #1
Share this Question
Share on Google+
2 Replies


Tog
P: 11
Tog
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
Feb 13 '07 #2

Expert 100+
P: 1,892
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>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<table border=1><tr><td>
<table border=0><tr><td>
<table border=0><tr><td>
<table border=0><tr><td>
<table border=0><tr><td>
<table border=0><tr><td>
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.
Feb 22 '07 #3

Post your reply

Sign in to post your reply or Sign up for a free account.