Skip to content

jrobinsonc/jorganz

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jOrganz

Grid layout for html blocks. With this jQuery plugin you can create Pinterest like layouts.

Build Status Built with Grunt

How to use

1. Include jQuery and jOrganz plugin:

<script type="text/javascript" src="//ajax.googleapis.com/ajax/libs/jquery/1.10.1/jquery.min.js"></script>
<script type="text/javascript" src="jquery.jorganz.min.js"></script>

2. Prepare items:

<div id="container">
    <div>Item 1</div>
    <div>Item 2</div>
    <div>Item 3</div>
</div>

3. Set items width through CSS:

<style type="text/css">
#container div { width: 250px; }
</style>

4. Call the plugin:

<script>
jQuery(window).load(function($){
    $("#container").jOrganz({
        selector: 'div'
    });
});
</script>

5. And enjoy.

Demo

Basic example:
http://jrobinsonc.github.io/jorganz/example-basic.html

Responsive example:
http://jrobinsonc.github.io/jorganz/example-responsive.html

License

Licensed under the MIT licence.

About

Grid layout for html blocks.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published