So I want to make an item container which looks like this in the picture.
I started with creating an .grid-container, then going on with divs inside the container with .grid-item & .item1.
<div class="grid-container">
<div class="grid-item item1></div>
</div>
for .css I had the idea for skew(-12.5deg)
.grid-container{
transform: skew(-12.5deg);
}
.grid-item{
transform: skew(12.5deg); //unskew
}
.item1{
background-image:url(item1.jpg);
}
Sadly the items won't unskew... They just rotate the image inside the item, but I want them to stay straight, just the "border/layout" should be skewed.
Also the grid won't let me place the items in one line, they just make another line... Maybe switch to flexbox?