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 trialThomas Swofford
1,399 PointsGrids dont add up
Based on the css layouts course grids Is hould be able to use a comination of grids that add up to 12 and the sit side by side. What ever combination I use (besides grid-12) the last grid will dropbelow & to the right. Also all of the code is not in the downloads and the ask a question link does not work.
1 Answer
robinbehroozi
15,912 PointsHi Thomas,
I was having trouble with building grids too. After a few searches, I found a good resource about them.
Here's the link http://designshack.net/articles/css/rolling-your-own-grid-layouts-on-the-fly-without-a-framework/
They build a grid with 4 columns and 3 margins. They make each column a width of 22% and each margin-right a width of 4%. They also set the last margin-right to 0.
They use a special calculator to figure out the width of the columns and margins. You could probably put in as many columns and margins as you want. It's not exactly an explanation of the grid system they teach here, more of a simpler grid system which is easier to learn.
Hope that helps!