It works for me, Remi! The colors change as appropriate... You just
have to switch them though ;). Like this:

body .landscape_test {
background: green;
}

body[orient="landscape"] .landscape_test {
background: red;

}


But the flip seems to work for me. I haven't looked at your code so I
am not sure if I am providing you with any answer to your question,
but just tested it on my iPhone...

Stan

On Nov 13, 1:39 pm, Remi Grumeau <[email protected]> wrote:
> Hi guys,
>
> Something is driving me mad: Javascript event !
> You can check out here :http://www.remi-grumeau.com/iphone/
>
> See orientation
> The DIV that contains the text has the class "landscape_test".
>
> In CSS, you will see this:
>
> body .landscape_test {
> background: red;}
>
> body[orient="landscape"] .landscape_test {
> background: green;
>
> }
>
> When i change the orientation of the iPhone, nothing change, but if i go
> backward, then it change.
> Just for the example, i put the same code on the body itself (white on
> portrait, lightgrey on landscape) and it works smoothly.
>
> Any idea ?

--

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=.


Reply via email to