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

Jonathan Klemm
PLUS
Jonathan Klemm
Courses Plus Student 2,776 Points

I did it a different way using floats and widths

In the challenge I did it a completely different way. I in the media query i did .primary { float: left; } .secondary { float: right; } .col { width: 45%; }

Muhamed Asil
Muhamed Asil
7,453 Points

Well, was there any problem in challenge result?

I think if you did that, you'd also need to add a "clear" property to the footer in order to prevent unwanted overlapping when the window is sized down.

2 Answers

Diana Le
Diana Le
6,794 Points

Yeah if you do it using floats you'll have to put a clearfix on the container div (contains both the primary and secondary divs).

Jesse Thompson
Jesse Thompson
10,684 Points

Appreciate this post. Was looking for this. I think I am going to go with Guil's solution for developing sites in the future but good to have both ways.