Paul McAleer

iPad Orientation CSS

Paul McAleer
iPad Orientation CSS

cameronmoll:

According to Jason Grigsby, WebKit on iPad honors CSS media query declarations based on orientation. As such, you can deliver different content based on portrait and landscape viewing by simply adding (orientation:portrait) or (orientation:landscape) to your link element. (See also Jason’s original post.)

I <3 CSS.