Of course leave it to IE

Discussion in 'Web Design and Development' started by dpaanlka, Dec 8, 2007.

  1. dpaanlka macrumors 601

    dpaanlka

    Joined:
    Nov 16, 2004
    Location:
    Illinois
    #1
    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:
     
  2. overanalyzer macrumors 6502a

    Joined:
    Sep 7, 2007
    Location:
    Boston, MA USA
    #2
  3. dpaanlka thread starter macrumors 601

    dpaanlka

    Joined:
    Nov 16, 2004
    Location:
    Illinois
    #3
    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.
     
  4. angelwatt Moderator emeritus

    angelwatt

    Joined:
    Aug 16, 2005
    Location:
    USA
    #4
    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.
     

Share This Page