Actually, I think my answer was spot on: with a fixed width layout set
to the portrait width, when the user switches to landscape, they'll
end up with the contebnt in a box of the set width, and margins on
each side to cope with the extra width.

EG:
#yourContainer{
  width:320px
  margin: 0 auto 0 auto;
}

Try that, and you'll see what I mean.



On Oct 24, 4:19 pm, Taschen <[EMAIL PROTECTED]> wrote:
> Thanks for the reply Stephane, but I think you misunderstood my
> question,
> I want to know if its possible to get safari to ignore the orientation
> change and
> render in a persistant portrait view - even when the iphone is
> tilted...
>
> T.
>
> On Oct 24, 9:08 pm, Stephane Daury <[EMAIL PROTECTED]> wrote:
>
> > All you need to do is a centered fixed width layout instead of
> > relative, if you want to keep your proportions exact.
> > Then you won;t even need JS polling of any kind.
> > Unless you have specific requirements, I would not recommend it though.
> > Lanscape mode has its own usability purpose.
>
> > Stephane
>
> > On Oct 24, 2007, at 09:34, Taschen wrote:
>
> > > Guys,
>
> > > I know I can use polling to detect whether I'm in landscape/portrait
> > > view in safari but is
> > > it possible to restrict my app to prendering in portrait view only?
>
> > > I pretty sure it isn't - but if anybodys tried this already or has any
> > > ideas
> > > theyd be greatlly appreciated.
>
> > > T


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"iPhoneWebDev" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/iphonewebdev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to