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 Techniques Grid Layout Creating the Grid Container

Adrian Pineda
Adrian Pineda
13,778 Points

Using Wrappers With Grid Layouts

I like the idea of using a grid like this for layouts, however, I'm not sure how to use a wrapper with it. If I use a wrapper of say 70% will it keep the column and grid ratio?

2 Answers

rydavim
rydavim
18,814 Points

A percentage based grid is going to work with the width of the parent element. So if you're using a wrapper, the grid percentages will be a fraction of the wrapper width.

So I suppose the short answer is yes.

Adrian Pineda
Adrian Pineda
13,778 Points

Got it thanks! I was over thinking it!