https://github.com/suitcss/utils-align
CSS vertical-alignment utilities
https://github.com/suitcss/utils-align
Last synced: 7 months ago
JSON representation
CSS vertical-alignment utilities
- Host: GitHub
- URL: https://github.com/suitcss/utils-align
- Owner: suitcss
- License: mit
- Created: 2014-02-09T22:43:09.000Z (over 12 years ago)
- Default Branch: master
- Last Pushed: 2016-10-15T15:37:26.000Z (over 9 years ago)
- Last Synced: 2025-02-12T01:07:18.144Z (over 1 year ago)
- Language: HTML
- Homepage: http://suitcss.github.io/utils-align/test/
- Size: 14.6 KB
- Stars: 12
- Watchers: 10
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# SUIT CSS utilities: align
[](https://travis-ci.org/suitcss/utils-align)
SUIT CSS utility classes for vertically aligning elements.
Read more about [SUIT CSS's design principles](https://github.com/suitcss/suit/).
## Installation
* [npm](http://npmjs.org/): `npm install suitcss-utils-align`
* Download: [zip](https://github.com/suitcss/utils-align/releases/latest)
## Available classes
* `u-alignBaseline` -Vertically align to baseline.
* `u-alignBottom` - Vertically align to bottom.
* `u-alignMiddle` - Vertically align to middle.
* `u-alignTop` - Vertically align to top.
## Usage
Please refer to the README for [SUIT CSS utils](https://github.com/suitcss/utils/)
## Testing
Install [Node](http://nodejs.org) (comes with npm).
```
npm install
```
To generate a build:
```
npm run build
```
To lint code with [postcss-bem-linter](https://github.com/postcss/postcss-bem-linter) and [stylelint](http://stylelint.io/)
```
npm run lint
```
To generate the testing build.
```
npm run build-test
```
To watch the files for making changes to test:
```
npm run watch
```
Basic visual tests are in `test/index.html`.
## Browser support
* Google Chrome (latest)
* Opera (latest)
* Firefox 4+
* Safari 5+
* Internet Explorer 8+