I want my website layout like this in landscape orientation:
+------------+---------------------+
| Header | |
| | Content |
| Navigation | |
+------------+---------------------+
and like this in portrait orientation:
+---------------------+
| Header |
+---------------------|
| |
| Content |
| |
+---------------------+
| Navigation |
+---------------------+
How can I achieve this?
I am aware of certain experimental CSS3 technologies(@media
queries) to manage screen orientation, but they are not widely implemented and therefore of no use to me.
I am also aware of the many similar questions here on SO, but they all deal with targeting different screen sizes and I do not want that. All I want is to reliably detect orientation accross the most common current browsers, independent of screen size, and without JavaScript. That is, a desktop browser window resized to landscape orientation should result in the same rendering as a handheld mobile device in landscape orientation, independent of the actual pixel width.