Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Feb 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    want to have a fixed cell width

    Here's the scenario:

    I've got 3 table cells in my table each of width 500

    The equivalent of:

    Code:
    <table><tr>
      <td width="500"> Cell 1
      </td>
      <td width="500"> Cell 2
      </td>
      <td width="500">cell 3
      </td>
    </tr></table>
    But when I extend cell2's (or any of the cells) width to 5000, the width of the 3 cells are adjusted to fit in the browser.
    What I want is a horizontal scrollbar to appear when the cell width is too long.
    Is that possible?

  • #2
    New to the CF scene
    Join Date
    Mar 2005
    Posts
    3
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Cells do that. They conform to the least resistance. That is why I find that it is best to define another table within that cell. This way you can define the table's width.

    Code:
    <table><tr>
      <td width="500"> Cell 1
      </td>
      <td width="500">
      <table width="5000">
          <tr>
                <td> Cell 2
                </td>
          </tr>
      </table>
      </td>
      <td width="500">cell 3
      </td>
    </tr></table>

  • #3
    New to the CF scene
    Join Date
    Feb 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts
    wow... great!
    thanks for the swift reply


  •  

    Posting Permissions

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