I've this code :
.container {
width: 100%;
margin: 30px;
}
.container div {
width: 100px;
height: 100px;
transform: rotate(-45deg);
background: blue;
display: inline-block;
}
<div class="container">
<div></div>
<div></div>
<div></div>
<div></div>
</div>
I want these div
s to fit whatever the .container
width is. I want to set dynamic width
and height
to them.
Thanks for your help !