Last active
September 25, 2016 07:37
-
-
Save airyboy/08ae28635e0a6d5df54f2bf04235751e to your computer and use it in GitHub Desktop.
Center div in another div horizontally
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
#container { | |
width: 640px; /*can be in percentage also.*/ | |
margin: 0 auto; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://stackoverflow.com/questions/114543/horizontally-center-a-div-in-a-div?rq=1