wsg  

Re: [WSG] old underscore hack question

Manny Blum
Sat, 19 Jul 2008 09:34:43 -0700

If you don't want to use conditionals, then try this:

#shell {
        background: url(../images/iebg.gif);
        margin:0 auto;
        background-repeat:repeat-y;
}

html>body #shell {
        background: url(../images/bgshad.png);
}

IE can' read the second block of code cause it gets confused by html>body, all other browsers have no problems with it.

Hope this helps. I've never heard of the underscore hack.


On Jul 18, 2008, at 6:52 PM, 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;
}

thanks in advance
-kevin



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




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