I have a page styled for mobile devices that when viewed in a desktop browser window re sizes fluidly, but on a mobile device it doesn't fill 100% of the width there appears to be somthing to the right of the page-container div. Could someone look at the css to see if I am missing something simple?
Hey svoltmer
There are some issues on my iPhone 4. But, in the viewport meta tag I always only have this:
meta name="viewport" content="width=device-width, initial-scale=1"
Not sure if "maximum-scale=2" affect the view…
There is also a red border around the search field which expands outside the content area to the right. I should remove that and see if it solves the problem (div id search-box: border).
@magnus_vb - How come you use maximum-scale=2 ? That means users who want to zoom on an iPad for example, won't be able to go beyond 2x. I always avoid min/max scales for accessibility.
I removed the maximum-scale Andy. Do you have any suggestions as to why my mobile content is not full width on this page? I could use some suggestions-I can't find anything.
I think the big empty area on the right is because you have overflowing elements (the search-field) . if you put overflow:hidden; on the pagewrap with a width of 100% you should get rid of that problem.
Thanks Carl! That did the trick. I cannot believe I forgot the overflow:hidden.
One other thing though, On the navigation when you click on it the search bar drops with the ul and I would prefer it staying in the grey bar at the top. It is floated right or I would just absolutely position it. Any suggestions again would be greatly appreciated.
I have a page styled for mobile devices that when viewed in a desktop browser window re sizes fluidly, but on a mobile device it doesn't fill 100% of the width there appears to be somthing to the right of the page-container div. Could someone look at the css to see if I am missing something simple?
https://edit-wwwprep.rose-hulman.edu/admissions-financial-aid.aspx
The width looks fine on my HTC ONE X but there are other issues.
Hey svoltmer There are some issues on my iPhone 4. But, in the viewport meta tag I always only have this:
meta name="viewport" content="width=device-width, initial-scale=1" Not sure if "maximum-scale=2" affect the view…
There is also a red border around the search field which expands outside the content area to the right. I should remove that and see if it solves the problem (div id search-box: border).
// Magnus
Magnus, The border was for testing and the home screen looks fine with the viewport set the way I have it. Take a look.
https://edit-wwwprep.rose-hulman.edu/
@magnus_vb - How come you use maximum-scale=2 ? That means users who want to zoom on an iPad for example, won't be able to go beyond 2x. I always avoid min/max scales for accessibility.
I removed the maximum-scale Andy. Do you have any suggestions as to why my mobile content is not full width on this page? I could use some suggestions-I can't find anything.
https://edit-wwwprep.rose-hulman.edu/admissions-financial-aid.aspx
Bump.. Anyone know why there is a huge space to the right of my design? I am desperate!
https://edit-wwwprep.rose-hulman.edu/admissions-financial-aid.aspx
I think the big empty area on the right is because you have overflowing elements (the search-field) . if you put
overflow:hidden;on the pagewrap with a width of 100% you should get rid of that problem.Thanks Carl! That did the trick. I cannot believe I forgot the overflow:hidden. One other thing though, On the navigation when you click on it the search bar drops with the ul and I would prefer it staying in the grey bar at the top. It is floated right or I would just absolutely position it. Any suggestions again would be greatly appreciated.