├── .github └── FUNDING.yml ├── README.md ├── bower.json ├── docs.css ├── favicon.ico ├── favicon.png ├── index.html ├── package.json ├── ungrid-screenshot.png ├── ungrid.css └── ungrid.min.css /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | # These are supported funding model platforms 2 | 3 | github: chrisnager 4 | open_collective: ungrid 5 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |  2 | 3 | # ungrid [](http://badge.fury.io/js/ungrid) [](http://badge.fury.io/bo/ungrid) 4 | 5 | the simplest responsive css grid 6 | 7 | 8 | 9 | ## What's this? 10 | 11 | __ungrid__ is a tiny, responsive, table-based CSS grid system. The entire `ungrid.css` file is 97 bytes minified. 12 | 13 | ```css 14 | @media (min-width: 30em) { 15 | .row { width: 100%; display: table; table-layout: fixed; } 16 | .col { display: table-cell; } 17 | } 18 | ``` 19 | 20 | 21 | 22 | ## Get started 23 | 24 | - Install with [npm](//www.npmjs.com/package/ungrid) `npm install ungrid` 25 | - Install with [Bower](//bower.io) `bower install ungrid` 26 | - Or just copy and paste the contents of ungrid.min.css into your CSS file. 27 | 28 | 29 | 30 | ## How to use 31 | 32 | To use, simply put as many `.col`s as you wish in your `.row`s and the `.col`s will automatically be evenly spaced. This allows you to roll your own simple grids. [See it in action](//codepen.io/chrisnager/pen/ypokv?editors=1100). 33 | 34 | ```html 35 |
ungrid is a responsive, table-based CSS grid system. To use, simply put as many .col
s as you wish in your .row
s and the .col
s will automatically be evenly spaced. This allows you to roll your own simple grids.
ungrid.css (97 bytes minified):
24 |@media (min-width: 30em) {
25 | .row { width: 100%; display: table; table-layout: fixed; }
26 | .col { display: table-cell; }
27 | }
28 | Go for it. Both fixed and percentage base widths work perfectly. You can even use them together. The remaining columns will take up the rest of the available space.
132 |