ReynierPM schrieb:
> Thanks for reply Karl. Let me see if I understand the thing you try to
> said me. First if I do this:
> .header_b { display:block }
> this only be interpreted by IE and others browsers, but If I do this in
> the same style
> #div_header > .header_b { display: inline }
> then this will be read by any browser != IE
> Is that correct?
> Cheers and thanks in advance
> El mar, 14-11-2006 a las 13:33 -0500, Karl Swedberg escribió:
Better not use it! Why?
The short answer: Just don't do it.
The longer answer:
You are targeting browsers that still get developed further with that
hack, e.g. IE 7. IE 6 and below do not support advanced CSS2 selectors
like the child selector in use here.
So for IE 6 you will get away with that hack, but IE 7 will understand
it and apply the properties declared in that rule. As IE 7 is still far
from being CSS2 complete and far behind all the other modern browsers,
and as its rendering engine behaves pretty much like IE 6 that is
probably not want you want. And then it's getting messy, because you
probably start to hack something else for IE 7.
If you need to target IE 6 solely, which can be considered as a dead
browser, you could use the Star Selector hack:
* html .header_b {
display: block;
}
I still recommend using Conditional Comments to keep your main style
sheet clean. Once you drop support for IE 6 you can simply throw away
the extra style sheet without having to clean up the main style sheet.
The long answer: http://tantek.com/log/2005/11.html
-- Klaus
_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/