Advertisement
Help Keep Boards Alive. Support us by going ad free today. See here: https://subscriptions.boards.ie/.
If we do not hit our goal we will be forced to close the site.

Current status: https://keepboardsalive.com/

Annual subs are best for most impact. If you are still undecided on going Ad Free - you can also donate using the Paypal Donate option. All contribution helps. Thank you.
https://www.boards.ie/group/1878-subscribers-forum

Private Group for paid up members of Boards.ie. Join the club.

Doctypes and IE6

  • 26-06-2007 04:02PM
    #1
    Registered Users, Registered Users 2 Posts: 155 ✭✭


    Hi,

    I put this site together a few years ago and it's come back to haunt me. My problem is that in IE6 and lower it goes hay wire, http://www.sianamorgan.com. I figured out its related to the Doctype declaration as I removed them and it worked fine. I don't want to remove all the doctypes just to satisfy IE6, is there a workaround for this does anyone know.

    thanks
    t


Comments

  • Registered Users, Registered Users 2 Posts: 8,488 ✭✭✭Goodshape


    Just as a test, try declaring font-size in px in your css for BODY. Might fix the different text sizes in IE6.


  • Registered Users, Registered Users 2 Posts: 673 ✭✭✭Bananna man


    Would a bit of javascript do the trick. I'm not totally sure because i only recently started using them but something like this might work:

    DOCTYPE for all other browsers as normal but then add this just after:

    <!--[if lte IE 6]>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd"&gt;
    <![endif]-->

    This code will only be seen by IE 6 and below as far as i understand it.


  • Registered Users, Registered Users 2 Posts: 155 ✭✭tammy


    ie 6 still choked on the loose.dtd so I just took it out altogether and now it works, here's what I have.

    <!--[if !IE]><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><![endif]--&gt;
    <!--[if gte IE 7]><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"><![endif]--&gt;

    thanks


Advertisement