I am developing a tree view like application using HTML. The problem is that although I am using the same CSS styles for both parent and child node at sub level, but there is an uneven line spacing between parent and child nodes, when parent node in collapsed i.e.
EXPANDED TREE STATE:-
-Parent Node
COLLAPSED TREE STATE:-
-Parent Node
I have already used ‘line-height’ property in CSS style but not getting the results.
EXPANDED TREE STATE:-
-Parent Node
-Sub-Parent Node.
-Child 1 of Sub-Parent Node.
. Desc of Child 1
-Child 2 of Sub-Parent Node.
. Desc of Child 2
-Child 1 of Parent Node.
. Desc of Child 1
-Child 2 of Parent Node.
. Desc of Child 2
-Child 3 of Parent Node.
. Desc of Child 3
COLLAPSED TREE STATE:-
-Parent Node
+Sub-Parent Node.
//Uneven line space here.
+Child 1 of Parent Node.
+Child 2 of Parent Node.
+Child 3 of Parent Node.
I have already used ‘line-height’ property in CSS style but not getting the results.
Comment