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

glenn romaniuk
glenn romaniuk
32,520 Points

Fluid Frid - Technique - 2 examples - which one is best and why?

I'm trying to understand why in these 2 project examples

Why is it that in the 'original smells like bakin' project they used a grid where If the number of items on the row exceeded the available space it was pushed to the next line. Example:

<div class="grid-6">Attribute 1</div> <div class="grid-6">Attribute 2</div>

In the newer layout courses they now wrap each div with a container div. With this model each container div represents a row. If you want a new row you are required to add a new container div. Example:

<div class="grid-container parentdiv"> <div class="grid-6">Attribute 1</div> <div class="grid-6">Attribute 2</div> </div>

What's the reasoning behind this? Whats a good practice these days?