![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
here is an example of the problem: http://www.sixhouse.net/wrap.html |
#3
| |||
| |||
|
|
the text that will display in the middle column is being pulled from a database. i have no way of knowing how long, or what the text will look like. it could be a single word, it could be a whole book. it might have spaces, it might not. it could very well be a single line of 2000 characters with no spaces and no line breaks. when something like this happens, the column explodes and expands so the data fits. obviously i cant have this. i also cant use server side code to deal with this. |
#4
| |||
| |||
|
|
i cant believe that im the only person that has ever run into this problem. im using a very simple table to layout a page. the table has 3 columns, with the middle column being where the data will be displayed. the table is set at 500px wide, with each column being a width that adds up to 500px. so far so simple. the text that will display in the middle column is being pulled from a database. i have no way of knowing how long, or what the text will look like. it could be a single word, it could be a whole book. it might have spaces, it might not. it could very well be a single line of 2000 characters with no spaces and no line breaks. |
|
when something like this happens, the column explodes and expands so the data fits. obviously i cant have this. i also cant use server side code to deal with this. i have tried everything i can possibly think of and the only thing that "works" is "word-wrap: break-word;" on the <td> tag. this simply wraps the text to the next line as soon as it hits the wall of the column. but that ONLY works in IE. so am i to believe that what i need to do is impossible? or that im the only person that has come across this? |
#5
| |||
| |||
|
|
On Fri, 29 Sep 2006 12:17:02 -0400, "Santos L Halper" <js (AT) js (DOT) com> wrote: the text that will display in the middle column is being pulled from a database. i have no way of knowing how long, or what the text will look like. it could be a single word, it could be a whole book. it might have spaces, it might not. it could very well be a single line of 2000 characters with no spaces and no line breaks. when something like this happens, the column explodes and expands so the data fits. obviously i cant have this. i also cant use server side code to deal with this. If you are pulling unknown characters out of a database you need server-side code to handle any problems that result. *That* is your problem - fix it. No CSS expert can help because it's a content problem, not a presentation problem. |
#6
| |||
| |||
|
|
Stephen Poley wrote: On Fri, 29 Sep 2006 12:17:02 -0400, "Santos L Halper" <js (AT) js (DOT) com> wrote: the text that will display in the middle column is being pulled from a database. i have no way of knowing how long, or what the text will look like. it could be a single word, it could be a whole book. it might have spaces, it might not. it could very well be a single line of 2000 characters with no spaces and no line breaks. when something like this happens, the column explodes and expands so the data fits. obviously i cant have this. i also cant use server side code to deal with this. If you are pulling unknown characters out of a database you need server-side code to handle any problems that result. *That* is your problem - fix it. No CSS expert can help because it's a content problem, not a presentation problem. Well--if max-width were implemented, that would solve the problem, no? |
#7
| |||
| |||
|
|
On Fri, 29 Sep 2006 12:46:22 -0400, Harlan Messinger hmessinger.removethis (AT) comcast (DOT) net> wrote: Stephen Poley wrote: On Fri, 29 Sep 2006 12:17:02 -0400, "Santos L Halper" <js (AT) js (DOT) com> wrote: the text that will display in the middle column is being pulled from a database. i have no way of knowing how long, or what the text will look like. it could be a single word, it could be a whole book. it might have spaces, it might not. it could very well be a single line of 2000 characters with no spaces and no line breaks. when something like this happens, the column explodes and expands so the data fits. obviously i cant have this. i also cant use server side code to deal with this. If you are pulling unknown characters out of a database you need server-side code to handle any problems that result. *That* is your problem - fix it. No CSS expert can help because it's a content problem, not a presentation problem. Well--if max-width were implemented, that would solve the problem, no? No, for two reasons. 1) http://www.w3.org/TR/REC-CSS2/visude...min-max-widths "Applies to: all elements except non-replaced inline elements and table elements" 2) If it did apply to table elements, the reader wouldn't be able to see the remaining content. If it is "a single line of 2000 characters with no spaces and no line breaks" then it needs to be broken appropriately (or replaced by something else) by a piece of code that specifically handles that type of content (whatever it may be). |
#8
| |||
| |||
|
|
i cant believe that im the only person that has ever run into this problem. im using a very simple table to layout a page. the table has 3 columns, with the middle column being where the data will be displayed. the table is set at 500px wide, with each column being a width that adds up to 500px. so far so simple. the text that will display in the middle column is being pulled from a database. i have no way of knowing how long, or what the text will look like. it could be a single word, it could be a whole book. it might have spaces, it might not. it could very well be a single line of 2000 characters with no spaces and no line breaks. when something like this happens, the column explodes and expands so the data fits. obviously i cant have this. i also cant use server side code to deal with this. i have tried everything i can possibly think of and the only thing that "works" is "word-wrap: break-word;" on the <td> tag. this simply wraps the text to the next line as soon as it hits the wall of the column. but that ONLY works in IE. so am i to believe that what i need to do is impossible? or that im the only person that has come across this? if i HAVE to do it this way, what can i use to fix this problem? |
#9
| |||
| |||
|
|
i cant believe that im the only person that has ever run into this problem. im using a very simple table to layout a page. the table has 3 columns, with the middle column being where the data will be displayed. the table is set at 500px wide, with each column being a width that adds up to 500px. so far so simple. the text that will display in the middle column is being pulled from a database. i have no way of knowing how long, or what the text will look like. it could be a single word, it could be a whole book. it might have spaces, it might not. it could very well be a single line of 2000 characters with no spaces and no line breaks. Split the string into set lengths on the server side. |
![]() |
| Thread Tools | |
| Display Modes | |
| |