Msg#: 4464632 posted 11:57 pm on Jun 12, 2012 (gmt 0)
I started working on making one of my HTML static sites mobile friendly.
My idea is to adjust existing template so it can be used by mobile users with one change in coding only: Switch between two different CSS files. This way, I can continue using the same template, change content, while all visitors can load exact same page and get it accustomed to their device.
I started with fixed width which is 300px. This fits all the content within the 300px and prevents the vertical scroll bar.
Now I wonder about vertical vs. horizontal usage. Do more people flip their mobile devices one or the other way?
At the end, I'll probably try to create something that adjusts the width to the user's screen, so I can set the maximum width only.
For now, I want it to be fixed until I get satisfied with the look and feel.
Msg#: 4464632 posted 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.
Msg#: 4464632 posted 11:45 pm on Jun 13, 2012 (gmt 0)
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.
Once I get this working, I'll switch to max width, whatever the device, if possible.
combination of meta viewport and media queries
Thanks for the link. That is my next step.
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).