• Stars
    star
    1,283
  • Rank 36,676 (Top 0.8 %)
  • Language
    CSS
  • Created over 10 years ago
  • Updated over 4 years ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

ungrid - the simplest responsive css grid

ungrid logo

ungrid npm version Bower version

the simplest responsive css grid

What's this?

ungrid is a tiny, responsive, table-based CSS grid system. The entire ungrid.css file is 97 bytes minified.

@media (min-width: 30em) {
    .row { width: 100%; display: table; table-layout: fixed; }
    .col { display: table-cell; }
}

Get started

  • Install with npm npm install ungrid
  • Install with Bower bower install ungrid
  • Or just copy and paste the contents of ungrid.min.css into your CSS file.

How to use

To use, simply put as many .cols as you wish in your .rows and the .cols will automatically be evenly spaced. This allows you to roll your own simple grids. See it in action.

<div class="row">
    <div class="col">⚜</div>
    <div class="col">⚜</div>
    <div class="col">⚜</div>
    …
    <div class="col">⚜</div>
</div>

ungrid grid system

Helpful resources

License

The MIT License (MIT)

Copyright (c) 2014-2020 Chris Nager

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

More Repositories

1

cursors

All available cursors
HTML
194
star
2

pride

Simple hack to display the colors of the rainbow flag in the GitHub language bar. #lovewins
Clojure
62
star
3

simple-paper-spinner

Simple <paper-spinner>
CSS
43
star
4

simple-debug.css

Debug your layouts with one line of CSS
HTML
33
star
5

tiny-google-fonts

Automatically reduce your Google Fonts file size by only building the font with the characters you actually use.
HTML
10
star
6

crafted-css

A personal compilation of CSS practices I follow
9
star
7

chrisnager-dot-com

chrisnager.com
TypeScript
7
star
8

emoonji

A friendly chatbot that sends the current moon phases with emojis
JavaScript
5
star
9

short-color-names

The 45 CSS color names that are as short as or shorter than their corresponding hexcodes.
5
star
10

viewport-units

Truly responsive type with viewport units
4
star
11

code-golfing-tips

Tips to help lower your code golfing score
HTML
3
star
12

bliss

beautifully lean, ideal style sheets (WIP - pull requests welcome!)
CSS
2
star
13

cuber-club

Fun with Bluetooth-enabled smart cubes
TypeScript
2
star
14

chrisnager.github.io

chrisnager.com
HTML
2
star
15

cheermeup.website

*Jeopardy music plays faintly*
CSS
2
star
16

react-countries

Small React app that uses Firebase to display a list of countries in the world
JavaScript
2
star
17

giphy-now-integration

A GIPHY Now Integration built for the ZEIT Hackathon
JavaScript
2
star
18

svg-please

Simple script to replace your bitmap icons with inline SVGs with bitmap fallback built in. (WIP)
JavaScript
2
star
19

hexcodes

All 4,096 shorthand hexcodes
1
star
20

name

Show off your name
JavaScript
1
star
21

hype-machine-snippet

A snippet of JavaScript that makes the Hype Machine player fill the viewport.
JavaScript
1
star
22

birthday-hex

Find your birthday hexcode
1
star