CSS columns at first seem like a promising solution, but they will not automatically adjust the width of the container as you add or remove areas.
, divs, , , . float:right. 90 , . divs , 90 .
- :
#container {
position:relative;
background-color:red;
max-width:500px;
margin-left:-500px;
max-height:500px;
overflow:hidden;
-webkit-transform:rotate(-90deg);
-webkit-transform-origin:top right;
-ms-transform:rotate(-90deg);
-ms-transform-origin:top right;
transform:rotate(-90deg);
transform-origin:top right;
padding:20px 0 0 20px;
-webkit-box-sizing:border-box;
-moz-box-sizing:border-box;
box-sizing:border-box;
}
#area {
background-color:yellow;
margin:0 20px 20px 0;
width:100px;
height:100px;
float:right;
-webkit-transform:rotate(90deg);
-ms-transform:rotate(90deg);
transform:rotate(90deg);
}
margin-left , - (.. max-width). max-height "", , . overflow:hidden , , .
, , div , . - ( ), box-sizing:border-box.
, divs 1:1, , , . , .
IE, , , IE9.