Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.


Grids for CSS

It may have already been explained on the 1st stage of Website Waters, But I don't understand how someone would be able to know how many columns there would be in a grid and how wide the columns would be. Do you calculate it in the design process before writing the site?

1 Answer

Kevin Korte
Kevin Korte
28,135 Points

If you had a grid system, you could look in the CSS document and see how many columns and the widths of those columns. Usually though, yes you take into account your gird system in the design process. Just keep in mind grids are to help align and lay out items, but in no way should a grid be so inflexible that you base your design around a grid. Instead your grid should fit around the design.

I've posted this before, but I enjoy this article on grids http://css-tricks.com/dont-overthink-it-grids/