| 12:13 am on Jun 13, 2012 (gmt 0)|
|This fits all the content within the 300px and prevents the vertical scroll bar. |
That would be the lateral scroll bar there :)
IME from watching ..most people begin with their phones held vertical "portrait"..and only flip "landscape" if they have to ..or to watch movies or look at pictures they have taken in landscape mode..
| 9:24 pm on Jun 13, 2012 (gmt 0)|
When I designed my site for mobiles, the same question cam up - vertical or horizontal.
From a personal perspective I always use my mobile in horizontal mode for the internet but then discovered that the rest of the world uses it in vertical mode. I have no idea why because horizontal provides a far better experience, but who am I to argue with the vertical world!
Why not try 320 though instead of 300? And don't forget this, designing your site for 320 wide vertical browsers is designing it for almost certain obsolesence. Next year the ideal width will be 450 or whatever.
| 11:26 pm on Jun 13, 2012 (gmt 0)|
I found that a combination of meta viewport and media queries worked best for me as a high amount of my mobile users had iPhones.
[edited by: incrediBILL at 10:10 pm (utc) on Jun 25, 2012]
[edit reason] fixed link [/edit]
| 11:45 pm on Jun 13, 2012 (gmt 0)|
Once I get this working, I'll switch to max width, whatever the device, if possible.
|And don't forget this, designing your site for 320 wide vertical browsers is designing it for almost certain obsolesence. Next year the ideal width will be 450 or whatever. |
Thanks for the link. That is my next step.
|combination of meta viewport and media queries |
Now, I'm using online browser simulators, and I wonder how that works.
What I need is that whatever I use to check the website sends the real mobile user agent, like from the real device.
I'm not getting my layout switch script to work when I use online simulators and I don't have any smart device on hand (as I still resist them personally and would rather live without mobile phone).
Are there emulators that send a real user agent?
| 11:55 pm on Jun 13, 2012 (gmt 0)|
Ha, if I did not ask I would not come back here to post what I found:
and my switch script worked when I used iPhone 3.0!
| 4:30 pm on Jun 25, 2012 (gmt 0)|
Thanks "small company" that is great. I haven't tried to set that up yet. I will be checking back to see how you are coming with that.
| 11:02 am on Jun 26, 2012 (gmt 0)|
Why not go for percentages? There's alot of different mobile devices out there with alot of different screen sizes.