I have an SVG at the bottom and I would like to place a button on the bottom line that is also responsive. How can I achieve this using CSS?
What I am trying to accomplish:
Is it possible with just CSS and how should I go about implementing it?
.container {
position: absolute;
width: 100vw;
height: 500px;
top: 0;
z-index: -1;
}
svg {
position: absolute;
top: 0px;
left: 0px;
height: 100%;
width: 100%;
z-index: 0;
}
polygon {
fill: green;
}
<div class="container">
<svg viewBox="0 0 40 100" preserveAspectRatio="none">
<polygon points="0,0 40,0 40,100 0,80" />
</svg>
</div>