Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Iphone layout issue

Featured Replies

Hi guys, for the love of all good things in live I cannot seem to get the main content to align alongside the nav. Seems pretty simple but I don't know what the issue is. Its fine on desktop browsers but on the iphone it screws up, any ideas why?

 

Website is http://bit.ly/Tz6lMs

Edited by lozenges

  • Author

I found a solution. I added

<meta name="viewport" content="width=1100" />

to the head. Not sure if this is good practise or even why it worked. What's your thoughts?

  • 2 weeks later...

Because you set the #primary width to 889px and this isn't being reset by any media queries. for example, on your iphone I guess or in a browser, go to the smallest breakpoint and you can scroll to the right quite a way.

 

Get rid of that declaration and the layout seems to work.

 

I'm guessing changing the viewport width to 1100px worked because now your whole #primary section fit inside. Personally I use

<meta name="viewport" content="width=device-width, initial-scale=1">

 

BTW, I didn't test it on an iphone because I don't have one. Just shuffled my browser window around :p

Edited by heydanreeves

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.