When I started to put my redesign together, I spent a lot of time wading through the CSS grid systems out there. Between Bootstrap, Responsive Grid System, Zurb, and others, I couldn’t find a solution that I liked. All either used non-semantic classes or had grids that I found overly complex. In the end, I found a guide to making your own grid system and put together my own responsive grid.
The code is pretty simple, and you can easily customize it and put it at the top of your CSS file:
Another benefit of rolling your own grid system is becoming very familiar with how responsive designs work (with
@media queries) and how grid systems work. To use the above grid system, it’s pretty easy:
A note about the instructions in that guide: it uses
rem units to set the grid up, but that unit isn’t supported in IE 8. In my example above, I ended up switching to