What I want
I am trying to get a kind of look with CSS.
- NOT TABLE
- It should be compatible with IE8 + (I could consider IE9 + if I can't find any solution for IE8)
- It must be a printable browser.
The fact is that on the Internet we have resources for family trees ( parent → childs ), but not for a pedigree ( child → parents )
Useful link, but for a family tree:
I had this working script http://thecodeplayer.com/walkthrough/css3-family-tree
But I need to completely invert it (my main node should be down), and I could not try the solution for this.
What I'm trying to do in a visual representation:
G FATHER FATHER G MOTHER CHILD MOTHER
(I can also make a decision in which the child can be located below and his parents at the top)
But I want to do this with pure HTML and CSS, if possible.
I work with simple UL containers and information containers. It means:
<ul> <li> <a>Child</a> <ul> <li> <a>Father</a> ...other ULs if available... </li> <li> <a>Mother</a> ...other ULs if available... </li> </ul> </li> </ul>
What have I tried (jsfiddles)
I tried several cases, one with floats, the other with more absolute positioning, but I don't get the result I want.
I need to play to show:
http://jsfiddle.net/darknessm0404/bZGFA/
And the old version:
http://jsfiddle.net/darknessm0404/4SDNm/
If you have any suggestions or solutions, let me know. There is a good family tree on the Internet with CSS, but I do not want them, since they are the opposite of what I want.