Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Website left aligned on iPad

I'm having problems with margin: 0 auto with my iPad. The div aligns to the left, not the center like it does on my desktop.

You can view the site here: www.amplify.io

The container has a width and I've tried a few solutions on the web but to no avail... any pointers greatly appreciated.

like image 270
Alex Fox Avatar asked Dec 27 '22 01:12

Alex Fox


1 Answers

Might be a case of overflow happening because you don't set a viewport for mobile devices.

Try adding:

<meta name="viewport" content="width=device-width,
                           maximum-scale=1.0" />

to your HTML head to be certain. Which should set the page width to the iPad's width and make sure no scaling is happening.

like image 197
SeventotheSeven Avatar answered Dec 29 '22 14:12

SeventotheSeven