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

Thread: tr help!

  1. #1
    New to the CF scene
    Join Date
    Dec 2005
    Posts
    6
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Cool tr help!

    if for example td width is 1024 and the content in the td doesn't fit in this width, the td will automatically span and include the rest of the content on a second line.

    i don't want this to happen. i want the td to stay 1 line and cut the rest of the unfit content.

    how is that?

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Overflow?

    I would have to test-drive it, but you could try "overflow: hidden" in you styles.

    By the way: please observe the Posting Guidelines with respect to post subjects; "tr help" not only is rather non-descript, but it's also confusing since you really have a td question. A good, descriptive post subject can help you attract the attention of those willing and able to help you out.
    Regards,
    Ronald.
    ronaldvanderwijden.com

  • #3
    Regular Coder
    Join Date
    Nov 2004
    Location
    The Netherlands
    Posts
    551
    Thanks
    0
    Thanked 0 Times in 0 Posts
    What Ronald says, but with white-space:
    Code:
    <td style="overflow:hidden; white-space:nowrap" width="1024">
        This cell will be one line of text and never be longer then 1024 wide.
    </td>
    http://www.w3schools.com/css/pr_text_white-space.asp
    http://www.w3schools.com/css/pr_pos_overflow.asp
    CATdude about IE6: "All your box-model are belong to us"


  •  

    Posting Permissions

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