Forum Moderators: open
If this happens often for you, I think you may need to do some server-side processing before the uploads are inserted into the page code. I really doubt there is a client side answer.
<div style="width:400; height:400; overflow:scroll;">A scrollbar will always be visible in this div.</div>
or
<div style="width:400; height:400; overflow:auto;">A scrollbar will automatically appear if the contents is too wide or high.</div>
or
<div style="width:400;height:400; overflow:hidden;">Too wide or too high contents will simply be cut off.</div>
Lines will only break at a space (but not, of course, a non-breaking space) or, in some browsers, at a hyphen. (Of course <br /> tags will force line breaks.) If, however, the text is in a <nobr> (which won't validate) environment, it will only break at a <wbr /> tag (again, not standard HTML). These tags are supported by many popular browsers. <pre> will cause the line to break only where a newline character or <br /> is encountered in the source code. You can use CSS to force similar behaviour.
There is no way of automatically forcing the browser to break lines anywhere else. And table cells will always expand wherever necessary; this is what they are supposed to do.
<table style="table-layout:fixed">
This should force the table size, but usually just hides any overflow, not forcing it to wrap. Tricky one.
Once or twice in the past, (with a couple of applications, not websites) this has been a necessary evil, but adding a title to the <td> that is the same as it's content can help (a little).
I think that's how media sites that use a Content Management System cope with constantly updated content. You can download and investigate such sites, say like dslreports.com, etc and fire it up in dreamweaver etc to see how they're put together. Makes for interesting study.
"Yawn" I've got to get back to bed, now...
Correct me if I'm wrongCertainly. If a table is too narrow to accommodate a nested table, it too will expand.
It is even possible (I know, I've done it myself) to define a table in such a way that one of the cells will extend beyond the table. Rather like the Tardis, which is bigger on the inside than on the outside, the table cell ended up wider than the table.
It was very strange, but I didn't do it deliberately. I certainly don't recommend trying it at home. It played merry hell with the rest of the page and it took me nearly an hour to find the mistake.
If we're talking bulleting boards here, it usually happens when some member posts something cooooooollllll! ...you know what I mean. An admin or mod could then just edit the post or something.