Can someone assist me with rotating multiple divs without them overlapping? Below is a simplified version of my code:
<div>
<div class="rect"></div>
<div class="rect"></div>
<div class="rect"></div>
</div>
In terms of styling:
.rect{
height:11cm !important;
width:15.2cm !important;
-webkit-transform: rotate(90deg); /* Safari and Chrome */
-moz-transform: rotate(90deg); /* Firefox */
-ms-transform: rotate(90deg); /* IE 9 */
-o-transform: rotate(90deg); /* Opera */
transform: rotate(90deg);
}
Currently, the divs are overlapping each other and leaving the left side of the page empty. Is there a way to prevent overlap and align them neatly in the top-left corner of the page?