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

https://github.com/electerious/basicfit

Turn elements on your site into a responsive unified grid.
https://github.com/electerious/basicfit

Last synced: 8 months ago
JSON representation

Turn elements on your site into a responsive unified grid.

Awesome Lists containing this project

README

          

# [Deprecated] basicFit

Turn elements on your site into a responsive unified grid.

![Context Screenshot](http://l.electerious.com/uploads/big/b549fbada34b81246856ef4158a02baf.png)

## Installation

bower install basicFit

## Requirements

basicFit requires jQuery >= 2.1.0

## How to use

####1. Include the files

```html

```

####2. Build a simple structure

```html







```

####3. Set a margin and max-min-width

```css
#content {
display: inline-block;
margin: 0 0 20px 0;
}
.element {
float: left;
margin: 20px 0 0 20px;
min-width: 300px;
max-width: 500px;
background-color: #000;
}
```

####4. Initialize basicFit

```coffee
basicFit.init '#content', '.element'
```

####5. Refresh after adding a new element

```coffee
$('#content').append element
basicFit.refresh()
```