On Fri, 15 Dec 2006 15:14:51 -0200, Rafael Mumme wrote:
> Is it safe to use this hack?
>
> <style>
> .foo { background:red;width:100px;height:100px; }
> .ie-only.foo { background:blue; }
> </style>
>
> It works in IE 6 and IE 7.  

Hmm. I can only get it to work in IE 5 and IE 6 (Windows xp).
My version of IE 7 (7.0.5730.11) seems to ignore the ie-only rule.

FWIW - I like to use conditional comments for IE 5+ Win. Sometimes it's not 
worth one stylesheet for IE 6 and another for IE 7. In these cases I still 
like to use / add the "star HTML" hack for IE 5 and 6 to the IE style sheet 
that IE 7 sees. YMMV.

Cordially,
David
--



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to