Re: [css-d] Getting round missing Child Selectors in IE67
Aaron Gray wrote: ... IE, even IE 7 does not support CSS Child Selectors ! As Philippe said, IE7 does in Standardsmode. I was wondering whether there is a work around at all Does this help, including the comments section? http://meyerweb.com/eric/thoughts/2005/05/31/universal-child-replacement/ But I think this is what David meant. You may have to upload a simplified reduction of the problem. Ingo -- http://www.satzansatz.de/css.html http://www.dolphinsback.com __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Getting round missing Child Selectors in IE67
On Sep 11, 2008, at 4:03 AM, Aaron Gray wrote: ... only to find out the IE, even IE 7 does not support CSS Child Selectors ! IE 7 supports child selectors just fine. You document _must_ be in standards mode, however (that is, start with a valid doctype). If your document lacks a doctype, then IE 7 behaves the same way a IE 6. Ah ! DOCTYPE again, I must remember to do this. Feeling silly. Thanks, Aaron __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Getting round missing Child Selectors in IE67
Aaron Gray wrote: ... IE, even IE 7 does not support CSS Child Selectors ! As Philippe said, IE7 does in Standardsmode. I was wondering whether there is a work around at all Does this help, including the comments section? http://meyerweb.com/eric/thoughts/2005/05/31/universal-child-replacement/ But I think this is what David meant. You may have to upload a simplified reduction of the problem. No I have tied that. The only thing that worked was to do all binary combinations for upto a certain depth but that was lengthy (doubleing in size for each new level) and would only work to a certain depth. Aaron __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Getting round missing Child Selectors in IE67
On Wed, 10 Sep 2008 20:03:40 +0100, Aaron Gray wrote: I have written the beginnings of a tree control widget. It works on all modern browsers bar IE. I was trying to get what I had written to work on IE then I tried it on FF and friends and it worked fine, only to find out the IE, even IE 7 does not support CSS Child Selectors ! Trust Micro$oft not to implement standards properly. Anyway I have three classes and the following CSS :- div.tree-node-elements { display: none; margin-left: 14pt; } tree-node-collapsed tree-node-elements { display: none; } tree-node-expanded tree-node-elements { display: block; } [rest of code snipped] I was wondering whether there is a work around at all, otherwise I will have to refactor and generalize my code. ~~ I have no experience with tree controls, but something like this *may* help: .tree-node-collapsed .tree-node-elements {display: none;} .tree-node-collapsed * .tree-node-elements {display: block;} Kinda-sorta emulates child node selectors(?) P.S. I thought that IE7 supports child selectors? FWIW - Microsoft claims only to support CSS 1 in IE 6, not level 2. Cordially, David -- __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Getting round missing Child Selectors in IE67
On Wed, 10 Sep 2008 20:03:40 +0100, Aaron Gray wrote: I have written the beginnings of a tree control widget. It works on all modern browsers bar IE. I was trying to get what I had written to work on IE then I tried it on FF and friends and it worked fine, only to find out the IE, even IE 7 does not support CSS Child Selectors ! Trust Micro$oft not to implement standards properly. Anyway I have three classes and the following CSS :- div.tree-node-elements { display: none; margin-left: 14pt; } tree-node-collapsed tree-node-elements { display: none; } tree-node-expanded tree-node-elements { display: block; } [rest of code snipped] I was wondering whether there is a work around at all, otherwise I will have to refactor and generalize my code. ~~ I have no experience with tree controls, but something like this *may* help: .tree-node-collapsed .tree-node-elements {display: none;} .tree-node-collapsed * .tree-node-elements {display: block;} No :( I did a full binary expansion of combinations to a depth of three and that worked to a depth of three, but the cases double in size every extra level of depth. I was wondering whether there was a shorted selector case that would work, but it does not look like it. Kinda-sorta emulates child node selectors(?) P.S. I thought that IE7 supports child selectors? No it seems that it does not :( FWIW - Microsoft claims only to support CSS 1 in IE 6, not level 2. Right. I am going to have to rewrite my javascript code. Thanks David, Aaron __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
Re: [css-d] Getting round missing Child Selectors in IE67
On Sep 11, 2008, at 4:03 AM, Aaron Gray wrote: ... only to find out the IE, even IE 7 does not support CSS Child Selectors ! IE 7 supports child selectors just fine. You document _must_ be in standards mode, however (that is, start with a valid doctype). If your document lacks a doctype, then IE 7 behaves the same way a IE 6. Philippe --- Philippe Wittenbergh http://l-c-n.com/ __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/
[css-d] Getting round missing Child Selectors in IE67
I have written the beginnings of a tree control widget. It works on all modern browsers bar IE. I was trying to get what I had written to work on IE then I tried it on FF and friends and it worked fine, only to find out the IE, even IE 7 does not support CSS Child Selectors ! Trust Micro$oft not to implement standards properly. Anyway I have three classes and the following CSS :- div.tree-node-elements { display: none; margin-left: 14pt; } tree-node-collapsed tree-node-elements { display: none; } tree-node-expanded tree-node-elements { display: block; } Then I generate the following div structure :- div class=tree-node-expanded div class=tree-node-head img src=minus.gif /div div class=tree-node-elements div class=tree-node-collapsed div class=tree-node-head img src=minus.gif /div div class=tree-node-elements /div /div /div /div I was wondering whether there is a work around at all, otherwise I will have to refactor and generalize my code. Maybe theres no workaround, but I thought I had seen a tree control work this way, but cannot find the example now. Any ideas ? Many thanks in advance, Aaron __ css-discuss [EMAIL PROTECTED] http://www.css-discuss.org/mailman/listinfo/css-d List wiki/FAQ -- http://css-discuss.incutio.com/ List policies -- http://css-discuss.org/policies.html Supported by evolt.org -- http://www.evolt.org/help_support_evolt/