I am trying to align the end of linear gradient at top with the start of one below it. Refer the fiddle https://jsfiddle.net/poqfa2kg/
Here I want to align the end of top ( green ) with the start of Bottom( red) for any resolution, currently it breaks if I change the browser width( resize) . Is there a way to achieve this
CSS
.top{
height: 40px;
width: 100%;
background: linear-gradient(78deg, red 50%, transparent 1%);
}
.bottom{
height: 40px;
width: 100%;
background: linear-gradient(78deg, green 52%, transparent 1%);
}
HTML
<div class='top'>
TOP
</div>
<div class='bottom'>
BOTTOM
</div>
