PDA

View Full Version : Of course leave it to IE




dpaanlka
Dec 8, 2007, 11:15 AM
Why doesn't anything I have set to white-space: nowrap; not wrap???

Like here:

http://forums.info-mac.org/search.php?search_id=active_topics

Every cell under the "Last Post" column should not wrap - dates should be entirely on one line, followed by the username on a second line.

It looks perfectly fine in Firefox, Netscape, Safari... basically everything except IE on Windows and I don't have a PC to test it on frequently.

Grr... :mad:



overanalyzer
Dec 8, 2007, 11:23 AM
Supposedly support for white-space: nowrap was added to IE 5.5. What version are you testing on?

http://www.macedition.com/cb/resources/tableCSStest.html#iewin

EDIT: Well, for within tables at least.

dpaanlka
Dec 8, 2007, 11:43 AM
IE 7 on Vista... I can only test it when I'm using my university's library's PCs. I'll test again today and take a screenshot.

angelwatt
Dec 8, 2007, 12:10 PM
IE doesn't seem to support the white-space CSS for table elements (http://msdn2.microsoft.com/en-us/library/ms531182.aspx).

An offered solution comes from another discussion (http://snook.ca/archives/html_and_css/problems_using/ Comment #11) where they suggest wrapping the text within the td with a span tag that gets the already stated CSS to stop wraps.

An alternative would be to use the nbsp entity for your spaces, which isn't the greatest solution. Another option may be to try white-space: pre; but that may require tweaking your sorce code a little. I'd probably start with the span solution first.

Edit:
Also, something I've come across recently is the ability to run IE on Mac (http://www.kronenberg.org/ies4osx/). It has a Beta IE7, but I couldn't get it to work. I mainly just use the IE6. It isn't great, but good for testing. It'll require installing X11 and Darwine, but it has the appropriate links for those.