471,599 Members | 1,038 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,599 software developers and data experts.

Nested tables padding issue

11
I'am putting this question in this forum as this is I think this is html issue rather than asp.net.
How can I make cell[2,2] get right its border displayed and aligned with upper cell???

<table style="padding-right: 20px" cellspacing="0" cellpadding="0" width="1000px">
<tr>
<td width="25%">
<asp:Label ID="Label9" runat="server" Text="label"></asp:Label><br />
<asp:TextBox SkinID="Normal" ID="TextBox10" runat="server"></asp:TextBox>
</td>
<td width="25%">
<asp:Label ID="Label10" runat="server" Text="label"></asp:Label><br />
<asp:TextBox SkinID="Normal" ID="TextBox11" runat="server"></asp:TextBox>
</td>
<td width="25%">
<asp:Label ID="Label11" runat="server" Text="label"></asp:Label><br />
<asp:TextBox SkinID="Normal" ID="TextBox12" runat="server"></asp:TextBox>
</td>
<td width="25%">
<asp:Label ID="Label12" runat="server" Text="label"></asp:Label><br />
<asp:TextBox SkinID="Normal" ID="TextBox13" runat="server"></asp:TextBox>
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="width: 100%">
<tr>
<td style="padding-right: 15px" width="50%">
<asp:Label SkinID="Normal" ID="Label18" runat="server" Text="label"></asp:Label><br />
<asp:TextBox SkinID="Normal" ID="TextBox19" runat="server"></asp:TextBox></td>
<td align="right" width="50%" >
<asp:Label SkinID="Normal" ID="Label19" runat="server" Text="label"></asp:Label><br />
<asp:TextBox SkinID="Normal" ID="TextBox20" runat="server"></asp:TextBox></td>
</tr>
</table>
</td>
<td>
<asp:Label ID="Label20" runat="server" Text="label"></asp:Label><br />
<asp:TextBox SkinID="Normal" ID="TextBox21" runat="server"></asp:TextBox>
</td>
<td colspan="2">
<asp:Label ID="Label21" runat="server" Text="label"></asp:Label><br />
<asp:TextBox SkinID="Normal" ID="TextBox22" runat="server"></asp:TextBox>
</td>
</tr>
</table>

Skins:
<asp:TextBox SkinID="Normal" runat="server" Width="100%" BorderWidth="1px" />
<asp:Label runat="server" SkinID="Normal" style="vertical-align: top; text-align: left" Width="100%" />
Aug 17 '07 #1
5 2127
drhowarddrfine
7,435 Expert 4TB
You'll have to supply the generated html. There's not enough there to work with and most of us don't use asp.net.
Aug 17 '07 #2
dizzy77
11
Here is html source:

<table style="padding-right: 20px" cellspacing="0" cellpadding="0" width="1000px">
<tr>
<td width="25%">
<span id="Label9">label</span><br />
<input name="TextBox10" type="text" id="TextBox10" style="border-width:1px;border-style:solid;width:100%;" />
</td>
<td width="25%">
<span id="Label10">label</span><br />
<input name="TextBox11" type="text" id="TextBox11" style="border-width:1px;border-style:solid;width:100%;" />
</td>
<td width="25%">
<span id="Label11">label</span><br />
<input name="TextBox12" type="text" id="TextBox12" style="border-width:1px;border-style:solid;width:100%;" />
</td>
<td width="25%">
<span id="Label12">label</span><br />
<input name="TextBox13" type="text" id="TextBox13" style="border-width:1px;border-style:solid;width:100%;" />
</td>
</tr>
<tr>
<td>
<table cellspacing="0" cellpadding="0" style="width: 100%">
<tr>
<td style="padding-right: 15px" width="50%">
<span id="Label18" style="display:inline-block;width:100%;vertical-align: top; text-align: left">label</span><br />
<input name="TextBox19" type="text" id="TextBox19" style="border-width:1px;border-style:solid;width:100%;" /></td>
<td align="right" width="50%" >
<span id="Label19" style="display:inline-block;width:100%;vertical-align: top; text-align: left">label</span><br />
<input name="TextBox20" type="text" id="TextBox20" style="border-width:1px;border-style:solid;width:100%;" /></td>
</tr>
</table>
</td>
<td>
<span id="Label20">label</span><br />
<input name="TextBox21" type="text" id="TextBox21" style="border-width:1px;border-style:solid;width:100%;" />
</td>
<td colspan="2">
<span id="Label21">label</span><br />
<input name="TextBox22" type="text" id="TextBox22" style="border-width:1px;border-style:solid;width:100%;" />
</td>
</tr>
</table>
Aug 17 '07 #3
drhowarddrfine
7,435 Expert 4TB
Remove 'align=right' from that cell
Aug 17 '07 #4
dizzy77
11
Are you sure?
I've tried that but nothing happens.
Aug 17 '07 #5
drhowarddrfine
7,435 Expert 4TB
Unless I'm looking at the wrong thing. Did you refresh your cache?
Aug 17 '07 #6

Post your reply

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

Similar topics

3 posts views Thread by Jonah Bishop | last post: by
9 posts views Thread by Dustin | last post: by
2 posts views Thread by Mario T. Lanza | last post: by
5 posts views Thread by Giggle Girl | last post: by
7 posts views Thread by vfk799 | last post: by
2 posts views Thread by Bouzy | last post: by
2 posts views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.