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

Grid.css - Explain it please?

Hello,

I'm a 12 year old programmer just wondering how to make grids. I know most CSS/HTML but I'm continuously wondering how to make a grid with Gridulator and CSS? Please explain it in the most simplest fashion.

Thanks. -Matt

1 Answer

Pedro Baumann
Pedro Baumann
12,815 Points

Hello Matt, A grid system like gridulator basically just configures some css clases for you to implement in your HTML that work as the scaffold for your design.

Ussually grid systems divide areas of the document in columns, and the clases assign those columns to you elements or html Div's.

I havent used gridulator, but Ill try to give some examples:

Imagine a 1000px width web is divides into 10 columns, so each column would be 100px width.

If you wanted an element to ocupy 400px you sould apply to it a class="4grid" to it. thus leaving you with 6 more grid spaces to use in the same row for content.

Good grid systems also handle grids inside of grids. Leaving empy spaces (offset) before placing the element, and manage all of your main elements floats and positions.

I know I haven't fully explained it, so I have found you some nicer explanaitons, I hope they help

First a simle one from Lynda http://www.youtube.com/watch?v=0IrWRuEyXYA

A more compehensive one: http://webdesign.tutsplus.com/tutorials/htmlcss-tutorials/foundation-for-beginners-the-grid-system/

And thisone:

http://net.tutsplus.com/tutorials/html-css-techniques/prototyping-with-the-grid-960-css-framework/

Thanks a lot!