Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oliverzheng/howtocenterincss
CSS generator for centering text/div depending on their size or the container size.
https://github.com/oliverzheng/howtocenterincss
Last synced: 15 days ago
JSON representation
CSS generator for centering text/div depending on their size or the container size.
- Host: GitHub
- URL: https://github.com/oliverzheng/howtocenterincss
- Owner: oliverzheng
- Created: 2015-01-29T06:19:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2020-09-04T21:26:50.000Z (about 4 years ago)
- Last Synced: 2024-04-09T21:37:45.787Z (7 months ago)
- Language: JavaScript
- Homepage: http://howtocenterincss.com/
- Size: 174 KB
- Stars: 1,119
- Watchers: 19
- Forks: 47
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# How to Center in CSS [![BuildStatus](https://travis-ci.org/oliverzheng/howtocenterincss.svg?branch=master)](https://travis-ci.org/oliverzheng/howtocenterincss)
Centering in CSS is a pain in the ass. There seems to be a gazillion ways to do it, depending on a variety of factors. This consolidates them and gives you the code you need for each situation.
This is a code generator for your alignment needs.
![](http://i.imgur.com/Q3cUg29.gif)