PDA

View Full Version : wrapping text and white-space


DHTML Kitchen
11-19-2004, 11:16 PM
I'm trying to prevent text from wrapping in the table headers that appear on the left side of tables.

IE does not support white-space: css property.

We cannot use nobr tag.

The content will be internationalized.

Since text may vary in size for different languages, we’ll have no way of knowing the exact dimensions it will occupy.

I may use the col element for the tables and just let the left-sided table-headers wrap in some other langs.

What xhtml valid solution will prevent text from wrapping, but allow variable width on the table header?

codegoboom
11-19-2004, 11:22 PM
Hmm, white-space has worked for my IE; maybe it has something to do with how/where you're applying it...

DHTML Kitchen
11-19-2004, 11:41 PM
white-space does work in IE6. Wow, I thought that it was something that they hadn't fixed.

This company is still supporting IE5, so I'll see if I can get them to approve wrapping text in IE 5.x.

Thanks.