SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Jul 2004
    Location
    Sweden
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Margins differs when serving as application/xhtml

    First of all I think I should excuse myself for my crappy english

    At work today I found a strange problem that at least I have never heard of before I think.

    I've made a site like any other but this timed I have served it as application/xhtml (I have also used the xml prolog) under the development time (don't ask me why). The site looks and works all the same in safari, firefox, camino and opera (I'm on Mac OS X).

    And then I downloaded Mac IE to try it there. Guess what the first message I get is that it doesn't understand what kind of document it is becuase I served it as application/xhtml. Well that wasn't any news to me since I know that Win IE crashes as well. So I removed it and replaced it with text/html (and removed the xml prolog to be sure), so then it works but some margins (note: not all) are a little strange. A picture or layer here and there is moved a few pixels to the right or something like that.

    I tested this in Safari also, and I tested to both use and not use the xml prolog so it has to do with what the document is served as.

    Maybe I'm just confused and tired since I haven't eaten anything yet today, but help me!

    It's not a problem since I can always use conditional commenting and such but it would be fun to know.

  2. #2
    CSS & JS/DOM Adept bronze trophy
    Join Date
    Mar 2005
    Location
    USA
    Posts
    5,482
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    IE5/Mac doesn't support IE5+/Win's conditional comments.

    You could use a filter to show CSS to IE5/Mac only.
    http://www.dithered.com/css_filters/...mment_end.html
    http://www.stopdesign.com/examples/ie5mac-bpf/
    We miss you, Dan Schulz.
    Learn CSS. | X/HTML Validator | CSS validator
    Dynamic Site Solutions
    Code for Firefox, Chrome, Safari, & Opera, then add fixes for IE, not vice versa.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •