I just skewed a section which is serving as a banner.
Now this section takes a higher height than expected obviously because of the skew.
How can I define my bottom margin based on this new height?
.banner{
transform: skewY(-5deg);
transform-origin: top right;
outline: solid 1px black;
margin-bottom: 5rem;
}
<section class="banner">
<h1>Hello World!</h1>
<h2>Subtitle</h2>
</section>
<div class="content">
<p>CONTENT</p>
</div>
If you open the snippet in full screen and change the window size you know what I mean... The content just gets hidden behind the banner.
Thanks in advance!