Created
February 21, 2014 15:46
-
-
Save ZachMoreno/9136636 to your computer and use it in GitHub Desktop.
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
/* The Magic Float Center Code */ | |
.float_center { | |
float: right; | |
position: relative; | |
left: -50%; /* or right 50% */ | |
text-align: left; | |
} | |
.float_center > .child { | |
position: relative; | |
left: 50%; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
http://codepen.io/alexandredees/pen/ojaFr