[thelist] cannot set overflow for <td>, is wrapping content in <td> with another element the only way?

Nan Harbison nan at nanharbison.com
Mon Feb 18 05:23:45 CST 2008


Is the data from the 'long and unimportant table cells' coming from a
database, and is it text? If so, you could only grab as much as will fit
into the table cell.
Nan

-----Original Message-----

it turns out that it's not possible to set overflow for table cells (<td>
and <th>), as I did a lot of experiments and read various forum discussions
about it, e.g.:
http://www.ahfb2000.com/webmaster_help_desk/showthread.php?t=5897
http://www.webdeveloper.com/forum/showthread.php?t=79299

The problem is I am working on a complicated web application, I need the
content in the table cells to be "overflow: hidden" otherwise several very
long (and unimportant) table cells would change the table arrangement and
break a lot other things. Placing a <div> inside the table cells and define
overflow style on that <div> can solve the problem by breaking a whole lot
of javascript written for it. Update these javascript would be a difficult
task.





More information about the thelist mailing list