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 trialChristopher Marcon
Courses Plus Student 4,286 PointsColumnar 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
Baptiste Fehrenbach
2,227 PointsThere 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 !
Radu Ioan Stochita
3,558 PointsYes, 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.