I have two fairly narrow (width: 400 pixels) divs that should be stacked vertically if there is sufficient vertical space in the browser window. If the height of the browser is too small and there is enough space on the right, the "lower div" should float to the right of the upper div.
In a sense, I ask for the opposite "float: left". float: left align divs horizontally if there is sufficient horizontal space in the browser window, and only floating divs below the rest, if available only below them.
Thanks for any suggestions!
source
share