I would like to have 2 divs side by side. One with some text and a solid background and one with an image as a background. I have problems with the skewing part. The div is skewed but it looks weird, you can see the background of the website.
Take a look at this screenshot from gyazo:
If you could please help me to remove those little spaces between the picture text and website borders, that'd be great!
I have tried multiple different methods from background linear gradient 45 degrees to all other sorts of stuff..
.apartments-showCase-content {
width: 50%;
background: grey;
height: 30em;
float: left;
box-sizing: border-box;
left: 50%;
transform: skew(6deg);
}
.apartments-showCase-image {
width: 50%;
background: #222;
height: 30em;
float: right;
background: url(https://i.picsum.photos/id/1003/800/800.jpg);
background-size: cover;
transform: skew(6deg);
}
<section class="apartments-section">
<div class="apartments-showCase-content"></div>
<div class="apartments-showCase-image"></div>
</section>
