https://github.com/developit/flexie
a simple flexible box layout implementation
https://github.com/developit/flexie
Last synced: 3 months ago
JSON representation
a simple flexible box layout implementation
- Host: GitHub
- URL: https://github.com/developit/flexie
- Owner: developit
- Created: 2015-02-26T20:42:59.000Z (almost 11 years ago)
- Default Branch: master
- Last Pushed: 2015-02-26T21:04:49.000Z (almost 11 years ago)
- Last Synced: 2025-09-12T00:45:32.912Z (4 months ago)
- Language: JavaScript
- Size: 92.8 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Flexie
======
Flexie is a simple flexible layout manager for HTML. It is **NOT** a CSS3 Flexible box layout implementation
Usage
-----
The parent element needs a `data-flex` attribute, and, optionally, a `data-flex-direction` value that can be either `vertical` or `horizontal`. If no `data-flex-direction` is specified, `vertical` will be assumed.
Each child element that should be sized by Flexie should have a `data-flex-weight` that is a numerical value. the total of all the `data-flex-weight` values will be used to calculate the size of each element. If a element doesn't have a `data-flex-weight` then it's size will be left alone. A sized element can also be a flex container.