SitePoint Sponsor |
|
User Tag List
Results 1 to 2 of 2
Thread: two tables inside one table
-
Jun 25, 2006, 18:07 #1
- Join Date
- Apr 2003
- Location
- daejeon, South Korea
- Posts
- 2,223
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
two tables inside one table
Code:<table cellpadding='0' cellspacing='0' border='0'> <tr> <td> <table cellpadding='0' cellspacing='0' border='0'> <tr> <td width='500' height='100'></td> </tr> </table> </td> <td bgcolor='blue'> <table cellpadding='0' cellspacing='0' border='0' width='99%' height='99%'> <tr> <td bgcolor='red'></td> </tr> </table> </td> </tr> </table>
I like to make the red table full-sized inside the blue table whatever the size of the green table become "100px," "200px," or "300px."
Can I make it the rea table full-sized without desinating a special height size with your help?
-
Jun 25, 2006, 21:54 #2
- Join Date
- Dec 2005
- Location
- New Zealand
- Posts
- 488
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
According to your description the red table will only be "full size" if it has enough content.
Do you want the blue table to stay inside the width of the browser window? If so, make it width="100%".
The green table should sit to the left at it's specified size.
The red table should appear to the right and should use it's content to take up the remaining width of the blue table.
I think it will be easier to achieve what you want to do with <div>'s.
Good luck
Bookmarks