www.webdeveloper.com
Results 1 to 3 of 3

Thread: doctype for both standard and quicks mode IE 8

  1. #1
    Join Date
    Apr 2010
    Posts
    14

    doctype for both standard and quicks mode IE 8

    my site was fine, was looking and working fine in IE 6 , 7, and 8 . I saw this css style postion fixed which does not work in IE till I declare the doctype so I declared the doctype

    as
    Code:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
    , now the postion fixed works , but this bought new problems for IE 8 ,problems with alignment , some java script now wroking tinymce not looking etc. , please suggest me what doctype should I speciy in my html so that I can use css style position fixed and also my site will look like it used to in IE8.
    I read little about doctypes , standard mode and quirks mode. my site was looking good in quirk mode but stanbdard mode is causing some issue.
    is it possible that browsers will work in both ways ?
    If I have to switch to old mode then I have to loose postion fixed which I dont want to, please advice me how can I have bot the features , I saw this

    Code:
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    it did not help me I tought after adding this It will work like IE 7 but did not make any difference.
    Please advice me how to have new css features and also browser old way of display , please advice me .

  2. #2
    Join Date
    Mar 2010
    Posts
    2,803
    For all commercial work I use this "header" at the top of my web pages and then I validate the html and css on the respective w3c validators.

    W3C Markup Validator
    W3C CSS Validator
    Code:
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    The EmulateIE7 meta tag you mention is meant to be only a workaround for pages that were written for IE7 and below before IE8 was released. It allows those pages to render in IE8 as if it was an IE7 browser. IE8 is much more standards compliant than IE7 and so the Emulate meta tag was intorduced by MS to allow developers time to upgrade their "IE7" pages to be more standards compliant and viewable in IE8 without the emulate meta and not break.
    Last edited by tirna; 02-10-2011 at 08:41 PM.

  3. #3
    Join Date
    Apr 2010
    Posts
    14
    Quote Originally Posted by tirna View Post
    For all commercial work I use this "header" at the top of my web pages and then I validate the html and css on the respective w3c validators.

    W3C Markup Validator
    W3C CSS Validator
    Code:
     
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
        <head>
            <meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
    The EmulateIE7 meta tag you mention is meant to be only a workaround for pages that were written for IE7 and below before IE8 was released. It allows those pages to render in IE8 as if it was an IE7 browser. IE8 is much more standards compliant than IE7 and so the Emulate meta tag was intorduced by MS to allow developers time to upgrade their "IE7" pages to be more standards compliant and viewable in IE8 without the emulate meta and not break.
    i cannot use xhtml1-strict.dtd because I use Iframes . My site was developed for older browers not for the latest IE, so I have to add the EmulateIE7 meta tag , I added that but was no different I get the same behaviour as if IE 8,I also tried webdeveloper for IE ther it gives us option to run in IE7 mode or IE 8 compatibale mode , when I turned on IE7 mode my site was good not problems , I tought emulate IE 7 meta tag would do the same , but it did not do for me .
    is there any way I can find what mode is the browser runing if my page has doctype and ie 7 emulate meta tag ?

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles