Created
August 26, 2013 10:42
-
-
Save simonewebdesign/6340204 to your computer and use it in GitHub Desktop.
CSS class for centering a div box
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
.centered { | |
position: relative; | |
float: left; | |
} | |
.centered.outer { | |
text-align: justify; | |
right: 50%; | |
} | |
.centered.inner { | |
margin: 0 auto; | |
left: 50%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment