Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS CSS Basics (2014) Basic Layout Clearing Floats

Columnar layout, float left vs floating right.

During this video we float the .resorts class left, and .tips to the right to achieve the two column layout. In the 'How to Create a Website' Nick creates a three column layout by floating all elements left and creates space using margins. Is this a common approach to the problem?

2 Answers

There are many ways to do this ! You can create a table and create your columns inside, float right/left your columns or create columns with div and 'display: inline-block' them !

Yes, it is a common approach, but now it depends on the case and on the developer that's creating that website. I recommend you not getting addicted to only float left, instead find a lot of possible solutions to your problem.