/Manhattan

A clean, lightweight and customisable CSS grid.

Primary LanguageCSSMIT LicenseMIT

Manhattan

Manhattan is a clean, lightweight and customisable CSS grid.

Named after the greatest grid system in the world, Manhattan is a modern and easy to use CSS grid. It uses it's own data-attribute mhtn keeping your class markup clean.

It offers three containers, the default restricts content on screens over a specified width, whereas flex and edge allow you to maximize any screen.

Manhattan doesn't use a traditional 12 column layout, but instead opts for straight forward percentages. There are five break points for total control over your layout, where you can specify a width for each column at each screen size.

Manhattan supports all modern browsers and most older ones, including IE 8 with the help of a media query polyfill.

It is also validated by the W3C CSS Jigsaw Service.

Why?

There is no shortage of CSS grids available and with so many frameworks offering everything you need, it can be hard to know which use, or if any. Pre-styled and assembled from components, I see too many websites lacking creativity and imagination. Although a grid isn't necessary either, it can be a useful tool for speeding up development without interrupting your website's personality.

I struggled to find a flexible grid without a heavy footprint, so I created Manhattan. It's ultra light, weighing in at 2.8 kb minified/658 bytes gzipped and released under the MIT license, free to use and abuse.

Enjoy

Usage

Take a look at the Usage and Demo pages on the Manhattan website.

Todo & Possible Future Features

  • Bug test
  • Release the first stable version
  • Create Sass version
  • Column alignments
  • WordPress plugin

How to Contribute Using GitHub

Raising Issues

If you've found an issue that's great, I'd like to hear as I'm always looking to improve the grid.

Please provide as much information about the bug as possible. Include a url which demonstrates the issue, or if you don't want to publicly reveal your url, create a JSFiddle. Alternatively you can email me for support.

Pull Requests

Pull request are welcome, please make sure your modifications are to the development version of Manhattan, and they are extremely well tested!

Feature Requests

If you have an idea or a request, just raise an issue. Please provide as much detail as possible, demos and examples would be fantastic if appropriate.