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/