473,379 Members | 1,379 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,379 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 2257
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.