Responsive Width on iPhones
- This topic has 8 replies, 4 voices, and was last updated 11 years ago by .
Viewing 9 posts - 1 through 9 (of 9 total)
Viewing 9 posts - 1 through 9 (of 9 total)
- You must be logged in to reply to this topic.
Tagged: responsive, style, theme
We’re using the CBOX theme, and have noticed that viewing the site on mobile phones (we’ve tried iPhone 4/5, and HTC One) renders some extra width on the right hand side outside the main content. You can see what I mean in the attachment (I hope). The image is our site on an iPhone 4 scrolled to the right to show the extra space.
Is anyone else experiencing this?
We can’t figure out what styles may be causing this to happen.
We’re going from bad to worse. On iphone we are getting a big long list of all menus first then images, then left, right and central widget etc. I’ve attached a photo. The commons in a box logo is there because we were trying the child theme in an attemppt to access theme options (but no joy).
@investa You’re kind of hijacking the thread from @cory, but in your case you have broken links to many of your CSS and Javascript resources, so your page is rendering in default browser styles. I’m guessing, but it looks like whatever minifying plugin you’re using is either broken or incorrectly configured. I’d start by disabling plugins until the site is functioning, but I’d definitely start with any that mess with the CSS and Javascript first.
Cory, can you post a link so the problem can be seen in the wild?
@haystack, I’ll see what I can do. Our whole site is behind a password. Thanks.
@cory the next best thing is to reduce the width of your browser window as narrow as it will go and use the inspector (in Chrome, Chromium or Safari) to see what’s causing the overflow. Often it’s something very simple but very obscure…
@haystack, we have a test instance you can access.
Here’s the URL: http://quadtest.fuller.edu
So, it turns out it’s not just me.
If you look at this very support site in a mobile device (or here for example) you’ll get the same thing. It’s the dark background bleed over on the right hand side.
@cory haven’t been able to grab my partner’s iPhone to test as yet… useful to know it seems to be a more general problem.
Hi all. @Cory began this thread on my behalf. I’ve made some more progress but still don’t have a solution and wanted to share.
The right side overhang in our case was caused by image width in the logo image breaking the wrapper div and extending into the <body>. In some attached images I set the background color of <body> to aqua so it is more obvious.
Even though the responsive.css resizes the image to 80% and it doesn’t look like it’s hitting the edge, the original size of the image is what the browser counts. In my case anything larger than 305px width breaks the div. This suggests that thee left side margin of one of the divs it’s inside is subtracting 15px from the 320 device width I should have on the iphone.
You can see this same behavior on pages like the buddy press members page where the search box also breaks the div.
I can get it to go away on the home page by only using a logo image of 305px width or less but that doesn’t actually address the problem. I’m going to keep at it.