Paul Novitski wrote:
> At 12/15/2006 09:14 AM, Rafael Mumme wrote:
>> .foo { background:red;width:100px;height:100px; }
>> .ie-only.foo { background:blue; }
>
> At 12/15/2006 11:08 AM, Thierry Koblentz wrote:
>> Actually, unless I'm missing something, it should be ".non-ie"> I believe the reason it's an ie-only hack is that standards-compliant > browers won't apply the selector .ie-only.foo to any element because > no element has both classes ie-only and foo, while IE will apply it > to any element with the class foo because it sees only the final > class of a multiple-class selector. Hi Paul, There was no markup associated with the original post, so after David's post: "If by "it works" you mean that IE 6 and 7 get a red background while other browsers get a blue background, then you'd be right." I assumed the attribute included *both* classes: class="ie-only foo" So thanks for the heads-up, *now* it makes more sense. :) --- Regards, Thierry | www.TJKDesign.com ******************************************************************* List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm Help: [EMAIL PROTECTED] *******************************************************************
