November 29, 201213 yr 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 November 29, 201213 yr by lozenges
November 29, 201213 yr 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?
December 10, 201213 yr 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 Edited December 10, 201213 yr by heydanreeves
Create an account or sign in to comment