www.webdeveloper.com
Results 1 to 2 of 2

Thread: Need Help Controlling Table Height Defaults

  1. #1
    Join Date
    Dec 2002
    Posts
    1

    Need Help Controlling Table Height Defaults

    <table width="500" border>
    <tr>
    <td width=250 height=10>A</td>
    <td rowspan=2><font size=8>B and more B of undetermined amount</td>
    </tr>
    <tr><td>C</td></tr>
    </table>


    This is the problem I am having. The Col B is going to be large but not set at a specific amount. I would like TD C to expand with it, not TD A. I have placed a height= in A to try and constrain but it does not work. Any solutions?

    Thanks
    MP

  2. #2
    Join Date
    Nov 2002
    Posts
    984

    Re: Need Help Controlling Table Height Defaults

    Originally posted by winsave11

    This is the problem I am having. The Col B is going to be large but not set at a specific amount. I would like TD C to expand with it, not TD A. I have placed a height= in A to try and constrain but it does not work.
    Any solutions?
    The obvious solution is to stop abusing <table> for creating general page layout and use CSS instead.
    Eg this will do something along the lines of what you want:

    <div style="float:left; width:250px">col A</div>
    <div>
    <div style="float:left; width:60%;">col B</div>
    col C
    </div>

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles