I’m in a bit of a fix. I’m working on a project and the method **div style=”margin:0 auto;”** works perfectly fine of a desktop, but gets messed up on mobile devices.(information getting randomly aligned as opposed to horizontal center). Strangely enough, on an earlier website , I used the “center” tag and _that_ seems to work like a charm. It even aligns itself beautifully in the landscape and portrait modes perfectly on mobile devices.
I’m reluctant to use the ‘center’ tag as I’m told this tag will be eventually weeded out. Any suggestions?
I Did have a problem design for mobile once, where are give a white space on the right side of the device, to solve the problem I’ve used the meta declaration for view port from [H5BP](http://html5boilerplate.com/).
Inside my Head tag.
Try it out, if don’t work let us know, and if possible host the code somewhere (on your host or codepen, gist, you know).