Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

Doctypes and IE6

  • 26-06-2007 3: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