/jquery.gridFit

Make DOM elements obey your grid.

Primary LanguageJavaScriptGNU General Public License v2.0GPL-2.0

jQuery gridFit

The gridFit plugin enables you to let any block element fit exactly into a custom grid that you can define at initialization.

Getting Started

Download the production version or the development version.

Markup

<div id="any-id"></div>

Initialization

$('#any-if').gridFit( gridWidth, gridHeight );

Roadmap

  • adding event for resize of elements without window resizing
  • adding element positioning according to the grid

Contributing

In lieu of a formal styleguide, take care to maintain the existing coding style. Add unit tests for any new or changed functionality. Lint and test your code using grunt.

Also, please don't edit files in the "dist" subdirectory as they are generated via grunt. You'll find source code in the "src" subdirectory!

License

Copyright (c) 2012 bleech
Licensed under the MIT, GPL licenses.