SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    Get my greedy down dotJoon's Avatar
    Join Date
    Apr 2003
    Location
    daejeon, South Korea
    Posts
    2,209
    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 have two tables inside one 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?

  2. #2
    Carpe Diem = Fish of the Day fisherboy's Avatar
    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
    fisherboy
    Web Site Design


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •