Centering elements with CSS
This trick is a overkill to let your elements center with CSS.
1 2 3 4 5 6 7 |
.center{ text-align: center; margin:0 auto; margin-left:auto; margin-right:auto; align:center; } |
I used this in Jquery mobile to center the pictures when the tablet was turning from position.
Leave a Reply