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

General Discussion

grid.css

i following along as i watch the video, but when it got to the grid.css part, i couldn't follow along anymore, i tried to use the gridulator but i don't know how to use it, i just wanted to know if how i could use all thos commands in the grid.css.

5 Answers

I'm having difficulty with this as well. There is no "grid.css" link the video, just the gridulator thing that does absolutely nothing. I guess we're just supposed to type out their grid.css from the video into a seperate notepad doc then link it into sublime. How convenient for $25/month...

grid.css is just a css file that contains a bunch of classes. It's not a program that divides up the page or anything special. You can use whatever name you like and whatever percentages and number of columns you like.

I've used a 4 column grid.css with widths of 25%, 50%, 75% and 99% for some site and 20 column for others. It's just a global way of defining how much space an element on your page is to take up.

If you had 2 paragraphs and you wanted them next to each other, you'd float them left and give them both a class of grid_6, to use the smells like bakin example. This would contain each paragraph to 50% of the containing element.

Gridulator is simply a tool to work out your columns into equal amounts. Imagine doing the maths of 960px / 12 and then working out the margin on each one as well. Would take time.

It's not something you copy and paste into your code an voila it's all done.

Hope that helps. :)

The grid.css file used in the videos is in the project zip file under the Adding Grid CSS video. Link here: http://treehouse-code-samples.s3.amazonaws.com/websitewaters-island01-stage03.zip

Didn't even see that. Thank you.

All of your comments are helpful! thanks!! any tips are more than welcome!