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

Nested table alters format of host table.

P: n/a
Gaz
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 nested table has
more rows than the first table, the first table (on the left) pads out
its rows so that the table matches the height of the nested table.

I don't want this it happen.. I just want the nested table to be
longer than the first table. Anybody have any ideas??

Gaz.

Here's a quick example of the problem :
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" >
<html>
<head>
<title>Table test</title>
<link href="Style Sheets\Ideal.css" type="text/css"
rel="stylesheet">
</head>

<body id="MyBody">

<table>
<tr>
<td>
TABLE TEST :Line number 1
</td>
<!--################################################## #-->
<td rowspan="99">
<table>
<tr>
<td>
Insert Table Line 1
</td>
</tr>
<tr>
<td>
Insert Table Line 1
</td>
</tr>
<tr>
<td>
Insert Table Line 1
</td>
</tr>
<tr>
<td>
Insert Table Line 1
</td>
</tr>
<tr>
<td>
Insert Table Line 1
</td>
</tr>
<tr>
<td>
Insert Table Line 1
</td>
</tr>
<tr>
<td>
Insert Table Line 1
</td>
</tr>
<tr>
<td>
Insert Table Line 1
</td>
</tr>
<tr>
<td>
Insert Table Line 1
</td>
</tr>
<tr>
<td>
Insert Table Line 1
</td>
</tr>
<tr>
<td>
Insert Table Line 1
</td>
</tr>
<tr>
<td>
Insert Table Line 1
</td>
</tr>
<tr>
<td>
Insert Table Line 1
</td>
</tr>
<tr>
<td>
Insert Table Line 1
</td>
</tr>
<tr>
<td>
Insert Table Line 1
</td>
</tr>
<tr>
<td>
Insert Table Line 1
</td>
</tr>
</table>
</td>
<!--################################################## #-->
</tr>
<tr>
<td>
TABLE TEST :Line number 2
</td>
</tr>
<tr>
<td>
TABLE TEST :Line number 3
</td>
</tr>
<tr>
<td>
TABLE TEST :Line number 4
</td>
</tr>
<tr>
<td>
TABLE TEST :Line number 5
</td>
</tr>
<tr>
<td>
TABLE TEST :Line number 6
</td>
</tr>
<tr>
<td>
TABLE TEST :Line number 7
</td>
</tr>
<tr>
<td>
TABLE TEST :Line number 8
</td>
</tr>
<tr>
<td>
TABLE TEST :Line number 9
</td>
</tr>
<tr>
<td>
TABLE TEST :Line number 10
</td>
</tr>
<tr>
<td>
TABLE TEST :Line number 11
</td>
</tr>
<tr>
<td>
TABLE TEST :Line number 12
</td>
</tr>

</table>

</body>
</html>
Jul 20 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
oo******@yahoo.co.uk (Gaz):
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 nested table has
more rows than the first table, the first table (on the left) pads out
its rows so that the table matches the height of the nested table.

I don't want this it happen.. I just want the nested table to be
longer than the first table. Anybody have any ideas??

Gaz.

Here's a quick example of the problem :

[ cut problem ]

New source:

<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN" >

<html>
<head>
<title>Table test</title>
<link href="Style Sheets\Ideal.css" type="text/css"
rel="stylesheet">
</head>

<body id="MyBody">

<table border="1">
<tr>
<td>

<table border="1">
<tr><td>TABLE TEST :Line number 1</td></tr>
<tr><td>TABLE TEST :Line number 2</td></tr>
<tr><td>TABLE TEST :Line number 3</td></tr>
<tr><td>TABLE TEST :Line number 4</td></tr>
<tr><td>TABLE TEST :Line number 5</td></tr>
<tr><td>TABLE TEST :Line number 6</td></tr>
<tr><td>TABLE TEST :Line number 7</td></tr>
<tr><td>TABLE TEST :Line number 8</td></tr>
<tr><td>TABLE TEST :Line number 9</td></tr>
<tr><td>TABLE TEST :Line number 10</td></tr>
<tr><td>TABLE TEST :Line number 11</td></tr>
<tr><td>TABLE TEST :Line number 12</td></tr>
</table>

</td>
<td>

<table border="1">
<tr><td>Insert Table Line 1</td></tr>
<tr><td>Insert Table Line 1</td></tr>
<tr><td>Insert Table Line 1</td></tr>
<tr><td>Insert Table Line 1</td></tr>
<tr><td>Insert Table Line 1</td></tr>
<tr><td>Insert Table Line 1</td></tr>
<tr><td>Insert Table Line 1</td></tr>
<tr><td>Insert Table Line 1</td></tr>
<tr><td>Insert Table Line 1</td></tr>
<tr><td>Insert Table Line 1</td></tr>
<tr><td>Insert Table Line 1</td></tr>
<tr><td>Insert Table Line 1</td></tr>
<tr><td>Insert Table Line 1</td></tr>
<tr><td>Insert Table Line 1</td></tr>
<tr><td>Insert Table Line 1</td></tr>
<tr><td>Insert Table Line 1</td></tr>
</table>

</td>
</tr>
</table>

</body>
</html>

John OO
--

<http://webcel.nl/>
<http://www.webcel.nl/bayshop/shop/bayshop.html>

"Time is what prevents everything from happening at once"
- John Archibald Wheeler -
Jul 20 '05 #2

P: n/a
Gaz wrote:

I need to have a table nested within another table.


Algorithum expressed in the form of a flow chart[1]:

Are you trying to use tables for layout?
Yes -> http://www.allmyfaqs.com/faq.pl?Tableless_layouts
No -> Sure?
No -> http://www.allmyfaqs.com/faq.pl?Tableless_layouts
Yes -> Really? You are only using them to asociate
rows and cols of data?
No -> http://www.allmyfaqs.com/faq.pl?Tableless_layouts
Yes -> Give us a URL [with real data; the code you posted
contains only dummy text].
Data that is so complex that it
makes sense to nest tables is really rare.
This is something special.

[1] borrowed with permission

--
Brian
follow the directions in my address to email me

Jul 20 '05 #3

P: n/a
Gaz
> > I need to have a table nested within another table.

Are you trying to use tables for layout?
Yes -> http://www.allmyfaqs.com/faq.pl?Tableless_layouts


OK, I'm reading up on http://www.alistapart.com/stories/tohell/ at the
moment. It mentions that 3 (or more) column layouts are difficult in
css without tables (I need several columns). I will send you an image
of my screen if you want, I don't have any webspace at the moment.
Would be glad to get your feedback on it.

I like the idea of css only layout, even if only to cut out all the
<table> <tr> <td>s all over the place, I will keep an open mind and
see if it can do what I want. But I'm dealing with a rather busy data
entry screen, not paragraphs of text, if that makes a difference.

By the way, I did get around my original problem by padding out the
first table with rows so that it is always as tall as the second table
can be.
Jul 20 '05 #4

P: n/a
Gaz
> > I need to have a table nested within another table.

Are you trying to use tables for layout?
Yes -> http://www.allmyfaqs.com/faq.pl?Tableless_layouts


OK, I'm reading up on http://www.alistapart.com/stories/tohell/ at the
moment. It mentions that 3 (or more) column layouts are difficult in
css without tables (I need several columns). I will send you an image
of my screen if you want, I don't have any webspace at the moment.
Would be glad to get your feedback on it.

I like the idea of css only layout, even if only to cut out all the
<table> <tr> <td>s all over the place, I will keep an open mind and
see if it can do what I want. But I'm dealing with a rather busy data
entry screen, not paragraphs of text, if that makes a difference.

By the way, I did get around my original problem by padding out the
first table with a row so that it is always as tall as the second
table can be :

<tr>
<td height="85px" colspan="99">

<td>
<tr>
Jul 20 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.