Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

CSS Forum


You are currently viewing our CSS Forum as a guest. Please register to participate.
Login



Reply
Old 06-01-2010, 01:58 AM IE8 Box model bingo
TWD
TWD's Avatar
King Spam Talker

Posts: 1,183
Trades: 0
Does everyone here include this meta tag as standard practice in their scripts?

Code:
<meta http-equiv="X-UA-Compatible" content="IE=8" />
If not, I suggest you do so.
I saw first hand today how sometimes IE8 will render a page in IE7 mode if you do not use the above declaration.


Scary stuff.

A good explanation of it here:
http://www.evotech.net/blog/2009/03/ie8-css-support/
__________________
RATE-MY-WEBSITE.com "Free website reviews by real web professionals"
Please login or register to view this content. Registration is FREE
TWD is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-01-2010, 03:01 PM Re: IE8 Box model bingo
LadynRed's Avatar
Defies a Status

Posts: 10,017
Location: Tennessee
Trades: 0
From MSDN:
Quote:
When Internet Explorer 8 encounters a Web page that does not contain an X-UA-Compatible header, it uses the <!DOCTYPE> directive to determine how to display the page. If the directive is missing or does not specify a standards-based document type, Internet Explorer 8 displays the page in IE5 mode (quirks mode).
If the <!DOCTYPE> directive specifies a standards-based document type, Internet Explorer 8 displays the page in IE8 mode, except in the following cases:
  • Compatibility View is enabled for the page.
  • The page is loaded in the Intranet zone and Internet Explorer 8 is configured to pages in the Intranet zone in Compatibility View.
  • Internet Explorer 8 is configured to display all Web sites in Compatibility View.
  • Internet Explorer 8 is configured to use the Compatibility View List, which specifies a set of Web sites that are always displayed in Compatibility View.
  • The Developer Tools are used to override the settings specified in the Web page.
  • The Web page encountered a page layout error and Internet Explorer 8 is configured to automatically recover from such errors by reopening the page in Compatibility View
Illustrates the importance of using a PROPER DOCTYPE.

Standards mode is the default for IE8.
From the IE Blog:
http://blogs.msdn.com/b/ie/archive/2...lity-view.aspx
__________________
Web Goddess & Web Standards Evangelist :) - Tables Be Gone !!

Please login or register to view this content. Registration is FREE


Please login or register to view this content. Registration is FREE

LadynRed is offline
Reply With Quote
View Public Profile
 
Old 06-01-2010, 07:23 PM Re: IE8 Box model bingo
TWD
TWD's Avatar
King Spam Talker

Posts: 1,183
Trades: 0
Well according to that, even with a correct DOCTYPE there is no guarantee that it is going to display in standards mode in IE8. That's the point.

Quote:
Internet Explorer 8 is configured to display all Web sites in Compatibility View.
If Compatibility mode were a true IE7 rendering perhaps it's something I could live with but in fact it's not. Microsoft didn't quite get it right and there are some differences between true IE7 rendering and IE8 in IE7 compatibility mode.
__________________
RATE-MY-WEBSITE.com "Free website reviews by real web professionals"
Please login or register to view this content. Registration is FREE
TWD is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to IE8 Box model bingo
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 1.78956 seconds with 12 queries