Warning: I have absolutely no idea what the vocabulary is for what I am looking for.
I have the following page (jsfiddle) that contains a tree of nodes (familly tree).
The tree can grow very big and consequently have a undesirable display, to fit into the container div. The div limit in the fiddle is simulated by:
.tree {
max-width: 500px;
}
I would like to achieve two goals:
I have looked into the overflow css keyword, but I do not understand on which element I should put it.
For example, when putting it in the tree class, the nodes keep staying in the predefined div size:
.tree {
max-width: 500px;
overflow: scroll;
}
Could you give me direction, based on my jsfiddle ?
Ok, I think the best solution would be to give the first ul a absolute position and set the tree to overflow: hidden;.
Then you would need to add a mouse / pointer listener to the tree that listenes to your mouse beeing dragged. The listener would change the position of the first ul based on your mouse drag, so you are moving around the tree.