Thierry Koblentz
Sat, 19 Jul 2008 18:24:54 -0700
> -----Original Message-----
> From: [EMAIL PROTECTED] [EMAIL PROTECTED] On
> Behalf Of David Hucklesby
> Sent: Saturday, July 19, 2008 4:10 PM
> To: wsg@webstandardsgroup.org
> Subject: Re: [WSG] old underscore hack question
>
> On Fri, 18 Jul 2008 23:52:44 +0100, kevin mcmonagle wrote:
> > hi,
> > i want to use the underscore hack instead of conditional comments
because it
> will be
> > easier to keep track of image paths. Its only an ie6 because
transparency
> workaround.
> > In my understanding the below code should only serve the gif to ie 6,
not
> later
> > versions?
> > but IE net renderer is rendering the gif in all ie versions. Its not
really
> like that
> > in a real "life" right?
> >
> > #shell{
> > background:url(../images/bgshad.png);
> > _background: url(../images/iebg.gif);
> > margin:0 auto;
> > background-repeat:repeat-y;
> > }
>
> You are correct. The underscore hack works with IE 5 and 6 only.
> An extension of this is to use an asterisk instead of an underscore
> to hack for IE7 as well. Obviously you don't need that, but I mention
> it for completeness.
As a side note, when using these hacks (_property and *property) in a last
declaration, it is important to terminate that declaration with a ";" to
prevent breakage in Safari v2
selector {property:value;_property:value} /* no safe for Safari v2 */
selector {property:value;_property:value;} /* safe for Safari v2 */
--
Regards,
Thierry | http://www.TJKDesign.com
*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************