Given comments on my previous answer, it seems that I may have misunderstood what you were looking for.
You can always take the jQuery approach, look at this article: http://www.mainelydesign.com/blog/view/auto-columns-columnizer-my-new-favorite-jquery-plugin.