Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

dpaanlka

macrumors 601
Original poster
Nov 16, 2004
4,869
34
Illinois
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:
 
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.
 
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.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.