Client Side Things
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesClient Side Things

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 Codewalkers Forums Sponsor:
  #1  
Old October 30th, 2004, 07:35 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
table inside cell of another table


html
------
Code:
<table id="main" border="1" cellpadding="0"> 

<tr> 

<td id="left"> 
<table border="1" cellpadding="0" id="tbl1"> 
<tr><td id="cell1"></td></tr> 
<tr><td id="cell2"></td></tr> 
</table> 
</td> 

<td id="middle"></td> 

<td id="right"></td> 

</tr> 
</table> 

css
-----
Code:
#main{width:100%;} /*main table*/ 

#left{vertical-align:top;width:35px;height:100%;} 

#tbl1{width:100%;height:100%;} /*nested table streched to occupy #left*/ 

#cell1{height:100px; background-position:top left; 
background-repeat:no-repeat; background-image:url(images/picr.png)} /*height in pixels*/ 

#cell2{background-repeat:repeat-y; background-position:top left; 
background-image:url(images/back.png)} 

#middle{height:200px;} 

#right{width:35px;} 



i'm putting a fixed size picture as background inside #cell1 and i put another tiled background into #cell2.
the thing is that despite i fix height:100% for #tbl1, the table doesn't strech to occupy #left completly.
i checked this with seting #left's background to red and #tbl1's to yellow...
what i see is that #left cell colored completly in red while #tbl1 is not...
the pictures says it all:

Reply With Quote
  #2  
Old October 30th, 2004, 10:27 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: table inside cell of another table

i'll start fresh (just forget everything above this post)
i wrote another test code and picture along with it explaining the problem...



Code:
<table id="maintable" border="1" cellpadding="0"  cellspacing="2" width="50%">
<tr><td id="parent" width="150">
<table id="nested" border="1" cellpadding="0"  cellspacing="2" height="100%">
<tr><td id="topcell" height="80" width="100"></td></tr>
<tr><td id="bottomcell">&nbsp;</td></tr>
</table>
</td>
<td height="300">right cell</td></tr>
</table>


css
----
Code:
#parent{background-color:#f00;vertical-align:top}
#topcell{background-color:#00f;}

#bottomcell{background-color:#0f0;}


yellow line on picture is what i'm trying to achieve

Reply With Quote
  #3  
Old October 30th, 2004, 11:29 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: table inside cell of another table

ok i give up
going to use absolute positioning
thank you to all of you who tried to help

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesClient Side Things > table inside cell of another table


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 6 hosted by Hostway
Stay green...Green IT