How we can create the responsive shape with css gradient like the attached image.
1 Answer
I've added an example for doing this with HTML and CSS. This is just one way of doing it of course.
div{
height: 15px;
width: 50%;
background-color: black;
position: absolute;
top: 0;
}
.left{
transform-origin: top right;
transform: rotate(-5deg);
}
.right{
left: 50%;
transform-origin: top left;
transform: rotate(5deg);
}
<div class="left"></div>
<div class="right"></div>

border-style: solid; border-width: 176px 176px 0 176px; border-color: #1e2e42 transparent transparent transparent;will give a triangledivs or try to use two CSS triangles like @xhulio mentioned.