On Wed, 01 Nov 2006 11:17:13 +0000, Barney Carroll wrote:
> Not wishing to suggest debate, but I want to know where IE7 stands with
> hacks.
>
[snipped references to hacks]
>
> Does anyone know of a more comprehensive article than PIE's? I am
> currently working on a site that suffers immensely from IE7 rendering
> (everything else is fine but I have used countless hack and non-hack
> browser-specific correction). I assume there must be hundreds of people
> in the same position, only they forgot to invite me to the wake.
>
Hi Barney,

Personally, I would avoid hacks as far as possible if I were you.
Microsoft and others recommend using so-called "conditional comments"[1]
to supply rules for IE. You can also _hide_ rules from IE this way.

(Some regard "conditional comments" as a hack, but as they exploit no
browser bug, they are perfectly safe to use, IMO)

Having said that, it is sometimes useful to "hack the dead" as some 
put it. Once a particular version of a browser has well and truly 
passed into history, it is relatively safe to exploit a bug to apply
a hack for that browser. (Notice I say "relatively". There's no 
guarantee that some future browser won't get that same bug!)

One hack I use is when I have a style sheet for all IE versions that,
say, uses "height: 1%" to give layout to an element. IE 5.0 does not
recognize "zoom: 1" - the preferred "hasLayout" trigger, and "height" 
has worked fine to date. So I exploit the "star HTML" hack you refer to
in order to hide that from IE 7, and use another trigger for "hasLayout"
for IE 7.

Note that was for a "quick fix" that I found preferable to creating an
additional style sheet for that one rule.

I hope this reference to "conditional comments" helps:

  <http://www.quirksmode.org/css/condcom.html>

If you have multiple versions of IE installed as "stand-alone" versions,
take a look at the additional notes on using conditional comments here:

  <http://www.positioniseverything.net/articles/multiIE.html>

Cordially,
David
--
www.hucklesby.com





______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to