/ Published in: CSS

.float_center is applied to the parent of the object you want to float center.
.float_center > .child is applied to the object you want to float center.
.float_center > .child is applied to the object you want to float center.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* 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%; }
Comments
