Help! CSS!
Nov. 30th, 2007 04:41 pmUpdate: problem solved now, see comment to
chrisvenus
I have here a bunch of scary, autogenerated HTML. I have a stylesheet which firmly says that inside a particular class:
white-space: nowrap;
The class thingy always appears inside a table's <td> element.
My generated HTML diplays beautifully in Firefox, all nicely on one line as I want it to be.
The compiled HTML I'm building from it, however, has the text wrapped. Which, in the circumstances, is very bad. I've established that other things in the same stylesheet are definitely being applied correctly.
Wait a minute...
<checks IE>
Yup, the straight HTML displays wrongly in IE as well.
So... IE and M$'s HTML compiling tool both ignore the nowrap attribute.
Googling around, it seems that there can be problems if you specify nowrap and specify table widths. However, as far as I can tell neither my scary autogenerated HTML nor my stylesheet make any remarks about how wide a table should be, or indeed how it should be laid out at all.
Is there anything I can do to make it behave nicely in IE ?
I have here a bunch of scary, autogenerated HTML. I have a stylesheet which firmly says that inside a particular class:
white-space: nowrap;
The class thingy always appears inside a table's <td> element.
My generated HTML diplays beautifully in Firefox, all nicely on one line as I want it to be.
The compiled HTML I'm building from it, however, has the text wrapped. Which, in the circumstances, is very bad. I've established that other things in the same stylesheet are definitely being applied correctly.
Wait a minute...
<checks IE>
Yup, the straight HTML displays wrongly in IE as well.
So... IE and M$'s HTML compiling tool both ignore the nowrap attribute.
Googling around, it seems that there can be problems if you specify nowrap and specify table widths. However, as far as I can tell neither my scary autogenerated HTML nor my stylesheet make any remarks about how wide a table should be, or indeed how it should be laid out at all.
Is there anything I can do to make it behave nicely in IE ?
no subject
Date: 2007-11-30 04:59 pm (UTC)