I am working on creating multiple parallelograms with the same skew aligned horizontally. While the first one looks perfect, additional divs seem to increase the skew more and more. I even attempted this using images and applying transform: rotate() but encountered the same issue.
Currently, I have a class set up to generate these parallelograms.
CSS:
.parallelogram-1 {
width: 30px;
height: 45px;
margin: 0px 40px;
border-left: 1px solid #000;
-webkit-transform: skew(-20deg);
-moz-transform: skew(-20deg);
-o-transform: skew(-20deg);
background: red;
}
HTML:
<div id="para">
<div class="parallelogram-1">
<div class="parallelogram-1">
<div class="parallelogram-1">
</div>
Any assistance you can provide would be greatly appreciated! ;-)