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

https://github.com/alexandersandberg/flexbox-masonry-reloaded

An extended version of Tobias Ahlin's flexbox-powered masonry layout
https://github.com/alexandersandberg/flexbox-masonry-reloaded

css html javascript masonry responsive

Last synced: 2 months ago
JSON representation

An extended version of Tobias Ahlin's flexbox-powered masonry layout

Awesome Lists containing this project

README

          

![Preview](preview.png)

# Flexbox Masonry Reloaded

## About the project
A flexbox-powered masonry layout, based on [Tobias Ahlin](https://github.com/tobiasahlin)'s [awesome solution](https://tobiasahlin.com/blog/masonry-with-css/).

With CSS Custom Properties and a little bit of JavaScript:
* *Automatic container height* — No fixed height needed
* *Customizable gutter size* — Simply change `--gutter` in the CSS
* *Responsive* — Collapses into fewer columns on specified `@media` breakpoints

### More columns
The JavaScript works with any amount of columns, but needs some tweaking in the HTML and the CSS. See [Tobias's blog post](https://tobiasahlin.com/blog/masonry-with-css/) for more info on that (not the exact same fix, but similar).

## Usage
[**Check it out live**](https://alexandersandberg.github.io/flexbox-masonry-reloaded/) *or* download the files and open `index.html` in your preferred browser.

## A project by Alexander Sandberg
Thanks for checking out my project! ❤️

If you want to get in touch, or check out my other work, you can find me online here:
* [Website](https://alexandersandberg.com) (alexandersandberg.com)
* [Twitter](https://twitter.com/alexandberg) (@alexandberg)

## License
Distributed under the MIT License © [Alexander Sandberg](https://github.com/alexandersandberg)