Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/judas-christ/justifizer

Simple row based grid layout
https://github.com/judas-christ/justifizer

Last synced: about 1 month ago
JSON representation

Simple row based grid layout

Awesome Lists containing this project

README

        

# Justifizer

Simple row based grid layout

## Usage

To layout the children of an element:

```js
justifize(container, [options])
```

To restore original layout:

```js
justifize.destroy(container)
```

Responsive layout (in modern browsers):

```js
window.onresize = justifize.bind(null, container);
```

### container

Type: `HTMLElement` or `String`

Either an element, or a selector.

### options

Options object.

#### minHeight

Type: `Number`

The minimum height of each row. The final height will depend on the items in the row.

## License

MIT