473,397 Members | 2,056 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,397 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 2259
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

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

Similar topics

4
by: Gaz | last post by:
Hi, I need to have a table nested within another table. The tables are alongside each other visually speaking, and the nested table (on the right) can vary in size. My problem is that when the...
3
by: Jonah Bishop | last post by:
I have a puzzling problem with centering text, and I'm hoping that someone here can help me out. First of all, let me state that I am using XHTML 1.0 Strict and CSS for all layout purposes (no...
9
by: Dustin | last post by:
Here's what I am trying to do: (Names represent CSS classes.) I want to create a photo gallery. I want the entire gallery to be surrounded by a box named PhotoGallery. I want a fluid placement...
2
by: Mario T. Lanza | last post by:
Greetings, I've been working on a 3-column layout where the center column is of a fixed width (230px wide). The center column must always be 230px and the columns on the right/left (always the...
17
by: Peter Olcott | last post by:
http://www.tommti-systems.de/go.html?http://www.tommti-systems.de/main-Dateien/reviews/languages/benchmarks.html Why is C# 500% slower than C++ on Nested Loops ??? Will this problem be solved in...
5
by: BMeyer | last post by:
I have been losing my mind trying to parse an XML document (with nested child elements, not all of which appear in each parent node) into a DataGrid object. What I want to do is "flatten" the XML...
5
by: Giggle Girl | last post by:
Is there a way to prevent properties (specifically, height and background color) from being "inherited" by nested tables? Something similar (but sort of opposite to) !important, like...
7
by: vfk799 | last post by:
This question may be as much about css as javascript. Here is my code. <html> <head> <script> function setBackground(id) { window.alert(id);...
2
by: Bouzy | last post by:
I have been trying to make some very basic forms. Everything I think should work once I get it on my server, but it looks like crap. I know you are supposed to use tables for an easy way to position....
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.