I'm trying to get table cells to clip content rather than wrapping.
It has been suggested to use:
td.clipped {
width: 5em;
overflow: hidden;
white-space: nowrap;
}
However, that doesn't work in either Firefox or IE. If I set
display:block, it sort of works in Firefox but IE (which is the target
for this intranet app) doesn't play the game at all.
table-layout:fixed doesn't seem to help either - or do I need to set
the widht of each column to make it work?
How can I force IE to clip table cells?
--
Rob
RobG - 26 Jun 2007 06:02 GMT
> I'm trying to get table cells to clip content rather than wrapping.
> It has been suggested to use:
[quoted text clipped - 13 lines]
>
> How can I force IE to clip table cells?
I think I've go it: set table-layout:fixed, set a width for the table
and in IE, replace all spaces with
How'd I go? Amazing how you can beat your head against a wall for
quite some time, then within a few minutes of posting - the answer
appears.
--
Rob