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 trialLucas Guimarães
Front End Web Development Techdegree Student 3,900 PointsI solved that part of floats with float: left and width: 100% instead of clear: both. Is this acceptable for that?
My solution was
invited-list {
float: left; width: 100%; }
1 Answer
Steven Parker
231,248 PointsWhile this might cause similar positioning, it's not quite the same because here, the invited list becomes a floated element itself. But in the video example it uses "clear" to position itself away from the floats and is a normal element itself.
The risk is that future design changes might have unexpected side-effects, and for that reason the more conventional technique of clearing the float is probably a better choice.