Results 1 to 4 of 4

Thread: Stop a table expanding

  1. #1
    Join Date
    Mar 2006

    Stop a table expanding

    I have a table with 2 cells, one 500 wide the other 100 wide.

    when i'm populating my cell (from a db) the text (a url) i'm inputting is very long and is causing my cell to expand to fit it (way off to the right, i have to scroll over)

    how can i stop it expanding over 500 and just force the text onto the next line?

    is it possible?

    Thanks Guys

  2. #2
    Join Date
    Feb 2006
    I assume your output has no spaces between characters, there is some JavaScript that will cut your text but easy fix is to you multiline text field for the output

  3. #3
    Join Date
    Nov 2003
    Jerryville, Tejas
    Is the point to have the URL visible or is it to have it clickable? If the former then put it in a sized div with overflow:auto. If the latter then just truncate the visible part, maybe appending "..." to indicate the truncation.
    "Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." Brian W. Kernighan

  4. #4
    Join Date
    Mar 2006
    thank for the replies:

    i did some css to force the cells not to change.

    it was something like

    table-layout: fixed ;

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