1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Doc. type, CSS and IE's "expression." - ARRRGGH!

Discussion in 'HTML & Website Design' started by autocrat, May 25, 2005.

  1. #1
    OK, I have a page I've built to customers spec, (boss's).
    Utilise's min-width etc in NN and Moz.

    Not IE - obviously.
    Found JS to emulate min-width..... yet the download for the script is huge!
    To big.
    Alternatives - limited.... can only find the IE expression for CSS to emulate this!

    Not compatible tith any Doc type I can find..... as soon as there is a doc type, IE 6 crashes out, (big freeze!) + causes issues with NN and Moz, plus makes things a little different in IE... fonts are wrong, positioning is out etc.

    Fix one thing, break another!

    So, does anyone know how to get IE into quirks mode without breaking things in the other browsers.

    Really, what I need is a Doc type that is compatable with the CSS Expression for IE.
    Any ideas?
    Please?
     
    autocrat, May 25, 2005 IP
  2. r0xoR

    r0xoR Peon

    Messages:
    1
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    use a doctype with no DTD reference... IE has a "quirks" mode which allows you to use expression()

    to use it use one of the following doctypes:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">

    do not use one of these

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Strict//EN">

    and do not use any of the XHTML types because they turn on strict mode

    :cool:
     
    r0xoR, Oct 15, 2005 IP
  3. Corey Bryant

    Corey Bryant Texan at Heart

    Messages:
    1,126
    Likes Received:
    51
    Best Answers:
    0
    Trophy Points:
    0
  4. mikmik

    mikmik Guest

    Messages:
    356
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I have had those browser crashes. If you get to many elements on your page it crashes IE - IE does seem to have some re-draw problems.

    Anyways, I found this CSS only approach to min width in IE and it works great:
    How to Use CSS to Solve min-width Problems in Internet Explorer
    http://www.webreference.com/programming/min-width/
     
    mikmik, Oct 20, 2005 IP
    Arnica likes this.