User Experience Stack Exchange is a question and answer site for user experience researchers and experts. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

My client wants his mobile app (not a native iPhone/Android app) to be portrait only. Can this be forced by HTML/JavaScript?

share|improve this question

closed as off topic by Roger Attrill, Marielle, DA01, Jitendra Vyas, Todd Sieling Sep 9 '11 at 6:46

Questions on User Experience Stack Exchange are expected to relate to user experience within the scope defined by the community. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about reopening questions here.If this question can be reworded to fit the rules in the help center, please edit the question.

This is not actually a UX question. It's more of a 'how do I do this technical thing' - so nothing related to improving the users experience as such. – Roger Attrill Sep 8 '11 at 19:33
If you question is "can" not "should" I think this is a Stack Overflow question – Ben Brocka Sep 8 '11 at 19:34
"Should" is a moot point, because you can't force it... you can only force different stylesheets. Now, there is a legitimate UX discussion to be had around what the differences between stylesheets should be, if bart cares to edit his question. – Daniel Newman Sep 8 '11 at 21:44
up vote 2 down vote accepted

For iPhone, at least, this question has already been answered on StackOverflow: How do I lock the orientation to portrait mode in a iPhone Web Application?. The short answer is no, but that you can supply different CSS styles for each orientation, so that you can make it functional for both cases.

I'd be interested if there are any differences for Android/WP7/BB, if anyone knows, though.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.