SitePoint Sponsor

User Tag List

Results 1 to 8 of 8
  1. #1
    Former Staff Member silver trophy Adam P.'s Avatar
    Join Date
    Apr 2001
    Location
    San Francisco
    Posts
    3,288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question How to make IE6 behave like IE 5.x

    I was previously under the impression that if you used an older DTD (say 4.0 transitional) or none at all on an HTML file and ran it on IE6 (Win) it would behave in 'quirky' mode, meaning it would act like it would on IE 5.5.

    Having experimented with this, I've found this not to be the case, more specifically, the tantek 'box hack' doesn't work correctly (in IE6 with the wrong or no DTD), when it does work in IE5.5, therefore 'quirky' 6 doesn't seem to be exactly the same as 'regular' 5.5

    Is there anyway to make it work?
    SPF Mentor/Advisor 2001-2003
    SPF Designer of the Year 2002
    SPF Graphic Designer of the Year 2003
    AdamPolselli.com

  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Add the <?xml?> declaration to the top of your pages, if they're XHTML. IE6 expects a <!DOCTYPE> as the first line in a "valid" page, so the <?xml?> declaration sends it into quirks mode. If your page is HTML 4.0 this will probably not work though.

  3. #3
    Former Staff Member silver trophy Adam P.'s Avatar
    Join Date
    Apr 2001
    Location
    San Francisco
    Posts
    3,288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Still didn't work...

    I can tell that's it is going into some kind of "quirks" mode, because pages display differently, but I've tried about 4 different box model hacks, and none of them are working.
    SPF Mentor/Advisor 2001-2003
    SPF Designer of the Year 2002
    SPF Graphic Designer of the Year 2003
    AdamPolselli.com

  4. #4
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    adam...i think the problem is the following (if i'm not mistaken...may need to double check first):

    the box model hack works because IE5.x doesn't understand the hacked bit. now IE6 does undestand it.
    IE5 has a faulty box model, IE6 only has it in quirks mode. effectively, IE6 understand your css (and reads the css beyond the hack), but it's probably still in quirks mode, so it's overcompensating again.

    make sense ? as i said, may have to test my theory...but i think that's the root of the problem...
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com

  5. #5
    Former Staff Member silver trophy Adam P.'s Avatar
    Join Date
    Apr 2001
    Location
    San Francisco
    Posts
    3,288
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Oh....I think I understand. Oh well...

    Thanks.
    SPF Mentor/Advisor 2001-2003
    SPF Designer of the Year 2002
    SPF Graphic Designer of the Year 2003
    AdamPolselli.com

  6. #6
    SitePoint Addict
    Join Date
    Dec 2002
    Posts
    386
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    so instead of the tantek hack try using a child selector, as no IE understands this, then your 'quirky' IE6 will use the same css as IE5.x and more modern browsers that understand child selectors can read a different value

    #mydiv{ width50px;}
    body>#mydiv{width 47px;}

  7. #7
    gingham dress, army boots... silver trophy redux's Avatar
    Join Date
    Apr 2002
    Location
    Salford / Manchester / UK
    Posts
    4,838
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    or keep IE6 in standards mode, and let tantek's hack cater for 5.5...
    i'd opt for this option if at all possible (which obviously depends on the project's nature)
    re·dux (adj.): brought back; returned. used postpositively
    [latin : re-, re- + dux, leader; see duke.]
    WaSP Accessibility Task Force Member
    splintered.co.uk | photographia.co.uk | redux.deviantart.com

  8. #8
    SitePoint Addict
    Join Date
    Dec 2002
    Posts
    386
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There are some interesting discussions starting to circulate around what to do with IE now that there isn't another version being released...
    Basically many people are beginning to say "start enhancing your pages for modern browsers, while delivering un-enhanced stuff to IE"
    The idea of putting IE6 into quirks mode and then treating it as more similar to its earlier siblings does at times appeal


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
  •