Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/rizo/align.css

Align things in CSS
https://github.com/rizo/align.css

Last synced: 23 days ago
JSON representation

Align things in CSS

Awesome Lists containing this project

README

        

# align.css

Natural, consistent, memorable CSS classe for aligning things in CSS.

**Demo**: https://rizo.github.io/align.css/

## Installation

Just put this in your CSS file:

```css
/* Container */
.row { display: flex; flex-direction: row; }
.col { display: flex; flex-direction: column; }

/* Align */
.row.left, .col.top { justify-content: flex-start; }
.row.center, .col.middle { justify-content: center; }
.row.right, .col.bottom { justify-content: flex-end; }
.row.top, .col.left { align-items: flex-start; }
.row.middle, .col.center { align-items: center; }
.row.bottom, .col.right { align-items: flex-end; }

/* Justify */
.row.between, .col.between { justify-content: space-between; }
.row.even, .col.even { justify-content: space-evenly; }
.row.around, .col.around { justify-content: space-around; }
```