0

I am having problems with center alignment on iPad. it is not working properly in iPad Safari and iPad Chrome browser - i tried all advices that i found on web - but i found no solution to my case.

My website is newgranatik.tw1.ru and problem in this middle (main) block.

moonvader
  • 19,761
  • 18
  • 67
  • 116

3 Answers3

0

i found interesting solution - add meta tag to my website

<meta name="viewport" content="width=[widest centered div];"/>
moonvader
  • 19,761
  • 18
  • 67
  • 116
0

I have taken a detailed look at your site. The problem is that when you reduce the width of the browser ( or view it on a lower resolution device ), the #main-container centers itself with {margin: 0 auto} BUT #header remains static with a width of 1200px and therefore they both fail to align!

Reproduce how your iPad is rendering by reducing the width of your browser window (on your desktop).

I recommend making your header auto-resize & auto-center. You could start by reducing the size of the logo for lower resolution/mobile screens using css.

Otherwise, the site has a nice design.

mrmoje
  • 3,714
  • 3
  • 20
  • 18
0

Same issue here. I tried this and it worked Settings-go to Display&Brightness-go to Display Zoom-click on More space - Done

Tom
  • 1
  • This was an old question regarding web design. A good design should not force the user to change settings in the browser to make the site look right. In this case, the designer needed to implement media queries so that the width of his/her elements did not overflow the view port. If you are designing a website today and you are not using media or container queries, then you are not doing it right. Check out https://www.w3schools.com/css/css_rwd_intro.asp for more info on responsive design. – wileyCoyote Jun 18 '23 at 19:43