+  woostyandkeas.com
|-+  Technical Discussion» Technical Help.» CSS and IE6 to IE8
Username:
Password:
Advanced Search
Pages: [1]   Go Down
  Print  
Author Topic: CSS and IE6 to IE8  (Read 222 times)
0 Members and 1 Guest are viewing this topic.
digidix
Business Class
From a glass
****

Good Guy/Gal Points. 20
Offline Offline

Posts: 793



WWW
« on: February 20, 2011, 10:22:15 PM »

Can anyone direct me to sites/hacks regarding CSS compliance with IE6 to IE8, I am working on a website using php but the site looks different on IE8, as I can see so far on some websites do I have to use for e.g.
Code:
.ie6 body (
.......

}

to make it work on IE browsers?
Logged
Ctulu
Server Admin
Alcoholic
*****

Good Guy/Gal Points. 126
Offline Offline

Posts: 6969


« Reply #1 on: February 21, 2011, 08:51:58 AM »

Perhaps this article might help?

http://www.evotech.net/blog/2009/03/ie8-css-support/

Quote
IE8 compliance mode / preventing IE7 rendering in the IE8 browser
Important to know is that IE8 has a button that allows users to render your page in IE7. If that button is clicked enough, your page will always render in IE7 for everyone (not just those who clicked the button). So, do you have to test your pages in IE8 in IE7 mode? No, you don’t. To ensure that your page is not rendered in IE7 mode inside the IE8 browser add the following meta tag to your pages:

<meta http-equiv="X-UA-Compatible" content="IE=8" />Alternatively, if you want your pages to render in IE7 mode you can write: <meta http-equiv="X-UA-Compatible" content="IE=7" />. The issue with this is that IE7 rendering in IE8 is not identical to plain IE7. So, I recommend against using this meta tag.

So, to ensure that you DON’T have to test in IE7, IE8 and IE8 in IE7 mode, add the code above


So my guess would be that adding the tag <meta http-equiv="X-UA-Compatible" content="IE=6" /> to your pages might enforce to only render it in IE6 mode.
Logged
corroded
Humbug Monkee
Pub regular
*******

Good Guy/Gal Points. 73
Offline Offline

Posts: 3916


Shop Smart, Shop S-Mart.


« Reply #2 on: February 21, 2011, 10:22:17 AM »

I don't tend to fix a lot of things for IE6 these days... IE7 up is what we enforce for access here...IE6 is a stain, after all.

I tend to use conditional comments to override the normal, valid settings you use for Chrome, Firefox and lesserly IE8... so essentially...W3C compatible.

Then IF IE8, IF IE7, IF IE6 and any globally used IE ones in IF IE.
Logged
digidix
Business Class
From a glass
****

Good Guy/Gal Points. 20
Offline Offline

Posts: 793



WWW
« Reply #3 on: March 02, 2011, 11:29:24 PM »

Weird, I used Strict instead of Transitional (Document type), and it works  scratchhead
Logged
corroded
Humbug Monkee
Pub regular
*******

Good Guy/Gal Points. 73
Offline Offline

Posts: 3916


Shop Smart, Shop S-Mart.


« Reply #4 on: March 03, 2011, 08:55:04 AM »

I always put HTML on strict. It really helps. I oft default form elements too.
Logged
digidix
Business Class
From a glass
****

Good Guy/Gal Points. 20
Offline Offline

Posts: 793



WWW
« Reply #5 on: March 03, 2011, 11:15:00 AM »

I always put HTML on strict. It really helps. I oft default form elements too.

But some web sites are saying that the target and list tags won't be valid using that  scratchhead
Logged
Pages: [1]   Go Up
  Print  
 
Jump to: