HTML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb DesignHTML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old October 23rd, 2000, 04:44 PM
machiavelli machiavelli is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 5 machiavelli User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Hi, I'm wondering if there is wa wayto control height of tables variably. I have a table with 2 cells, and within each of those two tables, i also have a table for a total of 3 tables. the problem is this. let's say i have a lot of information in the table in cell 2. then it will expand. however, can i have the table in cell 1 expand the same amount? i only ask this since all the table cells have different colors, and i would like to keep the color schema. i found a work around by specifying an absolutly large number for the inner tables' height, but, i was wondering if there is another way of doing it.

sample code:
<table cellspacing="5" cellpadding="5">
<tr>
<td bgcolor="#FFFFFF">

<table cellspacing="5" cellpadding="5">
<tr>
<td bgcolor="#000000">
stuff 1
</td>
</tr>
</table>

</td>
<td bgcolor="#FFFFFF">

<table cellspacing="5" cellpadding="5">
<tr>
<td bgcolor="#000000">
stuff 2
</td>
</tr>
</table>

</td>
</table>

Thanks in advance for any help.

[This message has been edited by machiavelli (edited October 23, 2000).]

Reply With Quote
  #2  
Old October 23rd, 2000, 07:47 PM
mab mab is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 4 mab User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
If you specify both inside tables to have:
height="100%"

then they will expand vertically to fill the outside table. Then, if one gets bigger, it will push the outside table up and the other one will expand to the same size.

Reply With Quote
  #3  
Old October 24th, 2000, 09:10 AM
machiavelli machiavelli is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 5 machiavelli User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
I already tried that, but it didn't seem to work. maybee i made a mistake. are you sure about this? thanks for you help.

<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by mab:
If you specify both inside tables to have:
height="100%"

then they will expand vertically to fill the outside table. Then, if one gets bigger, it will push the outside table up and the other one will expand to the same size.
[/quote]


Reply With Quote
  #4  
Old October 24th, 2000, 09:26 AM
machiavelli machiavelli is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Oct 2000
Posts: 5 machiavelli User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
hey, it did work. but only for IE. netscape seems to mess up. o well. no biggie. i was hoping it could be done, but if not, i'll find a work around. thanks. for ur help.

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb DesignHTML Programming > table question (height)


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT