css - What Are Other Ways to Do 2-Column Layouts? -
i've been stuck approach 2-column site quite while now
- wrap elements in "wrapper" div
- float main div left
- float sidebar left
- apply clearfix on wrapper div
the problem having whenever non-floated element in main div alongside floated one, have clears or clearfixes.
do have other approaches 2-column layouts. way, use said approach in my blog:
i use grid: http://www.1kbgrid.com/
it's more 2-column layout, idea of being flexible. instance, it's handy when have fancy layouts on front page , fall default 2-column on subpages. saves lot of time.
Comments
Post a Comment