Created
August 30, 2013 02:36
-
-
Save thirdj/6385808 to your computer and use it in GitHub Desktop.
css 가운데 정렬
From http://jsfiddle.net/mBBJM/1/
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
div{ | |
background: red; | |
bottom: 0; | |
height: 100px; | |
left: 0; | |
margin: auto; | |
position: absolute; | |
top: 0; | |
right: 0; | |
width: 100px; | |
} | |
/* | |
http://demosthenes.info/blog/723/Seven-Ways-of-Centering-With-CSS | |
http://css-tricks.com/quick-css-trick-how-to-center-an-object-exactly-in-the-center/ | |
http://www.paulund.co.uk/absolute-center-images-with-css | |
http://designshack.net/articles/css/how-to-center-anything-with-css/ | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment