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 Layout Basics Page Layout with the Float Property The Float Challenge Solution

Why did he apply the float to only the col class and not individually to primary and secondary?

.

Gabriel Plackey
Gabriel Plackey
11,064 Points

Yes, most definitely. Beyond these two ways there are even more ways to achieve this. Another that comes to mind quickly being flex box.

You will learn multiple ways to do just about everything, as you get better and more comfortable you will learn what ways are the best for what you are trying to do.

1 Answer

Gabriel Plackey
Gabriel Plackey
11,064 Points

The float left to both will work in a way where it push the first column to the left, then the second column against that the first one to the left as well. Giving the same result with less code. Which is always good.

.