![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
The contents will just wrap onto more rows without changing the column size, assuming they can be wrapped (not like a big image that will force the width). What you could do in javascript, as someone mentioned, is to first load the table with the default contents and record the widths, then set them explicitly and they'll stay constant: |
#12
| |||
| |||
|
|
chimalus (AT) gmail (DOT) com wrote: I don't want to specify column widths in the stylesheet since they're not known at design time. The "overflow:hidden" shouldn't be necessary because the table columns are already wide enough to accomodate all the text. - The widest width is not known. - The widest width is known since the text fits in it. Which is it? |
#13
| |||
| |||
|
#14
| |||
| |||
|
#15
| |||
| |||
|
|
I think it's like this: -Display the table with no widths specified at all (let the layout engine decide cell widths/heights. -Now keep those columns the same width even after dynamically modifying content. For this scheme, no HTML or CSS will work. There are hacks, like specifying all the same width, or specifying overflow:hidden (which I think would cause unwanted side effects). But I think javascript is the only way to do exactly what Jeff wants. Jeff, accurate? |
#16
| |||
| |||
|
|
You tried my code? We're going to have to see your page in its entirety. Probably best to send it via email, rocketmonkeys (AT) gmail (DOT) com, post here when you've sent it. The code I posted works for me in IE 6 XP SP2, and Firefox 1.5. It could be something else on the page is interfering. |
#17
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |