Hi,
I have my form inside <ul><li>
and working fine when using label and form elements.
The CSS for the form is simple: (no need to explain)
#form ul {....}
#form ul li {....}
My problem is that now, instead of drawing a form element, i want to draw a tree using <ul><li>
<li>
<label>Parent Category</label>
<div>
// ... draw TREE here
</div>
</li>
But my CSS looks like #form ul li {....}
, which means that it will affect the <ul><li>
that I have for the tree too.
If I use #form ul>li {....}
to style only direct children, it doesn't work in IE6.
One solution here is to use #tree ul li {}
to cancel out the styling that I don't need from the #form ul>li {}
. But the #tree ul li {}
is something that I will also use in places that don't need to cancel the #form ul li {}
styles.
Is there any other solution I can apply, so #form ul li
and #tree ul li
are independent from each other?
I hope my question is clear.
Thanks