Despite the fact that CSS has been around for years and that the majority of developers have moved away from table-based layouts, floats and positioning can still be confusing for newer developers.
The guys over at A List Apart provided a solid introduction to the floats in their article CSS Floats 101.
The article covers:
- Definition
- How Floats Behave
- Clear
- Layouts
- Collapsing
- ..and more.
Check it out if you need a primer (or refresher) on this!
Eric Dye says
Bookmarked?
Yes.
Tom McFarlin says
๐
Brian Notess says
Man, I can’t tell you how many hours and computer-dropkick-impulses this article could have saved me early on.
Especially the part about dealing with collapsing. *sigh* It’s really embarrassing now that I think about it.
๐
Tom McFarlin says
..especially for older browsers, right? ๐