Uneven line spacing between node of tree view

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Developer111
    New Member
    • Apr 2010
    • 28

    #1

    Uneven line spacing between node of tree view

    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
    -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.
  • JKing
    Recognized Expert Top Contributor
    • Jun 2007
    • 1206

    #2
    I would need to see the HTML and CSS or a link to your page to give you any valuable advice.

    Comment

    • Developer111
      New Member
      • Apr 2010
      • 28

      #3
      Thanks for your reply. Actually, i have solved the problem. The uneven line spacing was because of an extra DIV which i have put in the HTML code.

      Comment

      Working...