Hello again Mohsen,

On Fri, 8 Dec 2006 23:04:48 +0330, you wrote:
> Thanks,
> I'm looking for something inside CSS. IE conditional comment works from 
> inside HTML only.
>
True. Is this a CSS Zen Garden kind of thing then, where you can't touch 
the HTML?

I had written:
>> I believe that IE 7 will ignore the second declaration, thus doing what
>> you want. Although this bug was fixed in IE 7, I heard that a leading 
>> asterisk (*) will be accepted by both IE 6 AND IE 7.
>>
You replied:
> [...]
>
> I didn't get your meaning about asterisk. Do you mean something like: 
> *position: fixed,
> or * position: fixed?
>
I meant your first example (no space after *).

A little test using a standalone version of IE 6 and a default install of 
IE 7 shows that IE 7 accepts properties that have an added star prefix, 
while IE 6 indeed accepts both a leading star and a leading underscore.

I think that other browsers treat these leading characters correctly as 
invalid CSS and ignore them, but wouldn't count on it. Any complex 
engineering has flaws. Ask NASA.

>
> I think the only possible think I can do inside .css file, is to add a 
> "html>body" before my standard rule (which also works in IE 7) and a 
> normal rule for IE 6
> ex:
> html>body #foo {width: 300px;} /* Standard */
> #foo {width: 300px;} /* IE 5, 5.5 and 6 */
>
That sounds like a plan. I assume you intend to serve different values in 
each rule?  ;)

Happy hacking!

Cordially,
David
--




______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
IE7 information -- http://css-discuss.incutio.com/?page=IE7
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to