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
, 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.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN">
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
it did not help me I tought after adding this It will work like IE 7 but did not make any difference.
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
Please advice me how to have new css features and also browser old way of display , please advice me .
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 ValidatorThe 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.
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 .
Originally Posted by tirna
is there any way I can find what mode is the browser runing if my page has doctype and ie 7 emulate meta tag ?
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)