I am working on developing a mobile device layout with 3 blocks. The first and third blocks contain text fields, while the second block is filled with a map. However, all of my blocks don't look good when they are too wide. The browser window can have two different orientations: book and album. When the orientation is album, I want to change the positions of the blocks. Allow me to demonstrate how I envision the behavior of these blocks for each of the two orientations.
BOOK ORIENTATION:
+------------+
| First |
+------------+
| |
| Second |
| |
+------------+
| Third |
+------------+
HTML:
<div>First</div>
<div>Second</div>
<div>Third</div>
ALBUM ORIENTATION:
+------------+-------------+
| First | |
+------------+ Second |
| Third | |
+------------+-------------+
Is there a way I can achieve this layout switch based on orientation? Any help would be greatly appreciated!