Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Andreas Fischer
8,256 PointsReal mobile site looks completely different than on testing sites
Hi there,
I made a website with a few pages. It's not perfect because it's my first one but it looks nice and does what I should do.
I made the site responsive and with every tool I checked it looks how I want it to look. Now I uploaded the site and accessed it with my smartphone (Galaxy SII) and it's completely messed up:
- The text of the page hovers over the header
- the elements of an accordion menu are not centered and get cut off on the right side
- I have a blank space above my header
- etc...
Is it because of my smartphone?
Here is how it looks when I test it on my computer, everything is fine:
And here it is when I access it directly via my smartphone:
- http://i.imgur.com/TSvUyTH.png (text all over the place, white bar over the header)
- http://i.imgur.com/RDiXWGW.png (Text not aligned, gets cut off on the right side)
I can post my HTML and CSS if needed
2 Answers
mrhummel
Courses Plus Student 1,765 PointsIt sounds like you zoomed in on the webpage. It would at least explain the cut off and overlapping text. So my first guess is, either the zoom of your mobile browser is not on 100% or you're using an uncommon browser?
And also did you define meta tags in the head of the html?
<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
Anyway, please post your code here that we can help you better.
Andreas Fischer
8,256 PointsHi there,
just a quick update:
I installed Chrome, Firefox and Opera on my Galaxy S2 and everything works perfectly fine!
Now that I tested it on browserstack it doesn't work very well on iOS either. Don't know where I went wrong...
Maybe this helps anyone to help me with this problem.
Andreas Fischer
8,256 PointsAndreas Fischer
8,256 PointsHi mrhummel,
I didn't have "user-scalable=no" included. Unfortunately, it didn't work. The browser I use with my S2 is the standard browser, never changed that.
EDIT: My brother has the same problem but doesn't use a S2.
Here is my HTML code from the site I took the screenshots from:
And here the CSS:
And the responsive CSS: