Treemaps from unordered lists and CSS
Another little test, this time trying to build something like a Treemap, using CSS and semantic HTML.
The above image is an example of what I'm trying to go for. Here's a sample of what I've got:
http://www.decafbad.com/2005/06/tree.html
Two things I can't seem to work around with my understanding of CSS:
- Is there a way to clear the floats in the unordered lists without using a break?
- Is there a way to even out the heights and widths of the columns / rows without some Javascript intervention?
shortname=css_treemaps
Archived Comments
hi,
I was looking throught the sites for treemap using dom javascript in browser. i am looking for something similar to the image in web page. i am getting the values like x,y cordinates and their respective width and height and their childs x,y cordinates and their width and height. Can u give some ideas how to start working on it.
Thanks in Advance.
Regards Vinod T S