How to draw such an shape via css in a single section(div)?
currently i have used three div check my code :)
The idea is simple, for top, from horizontally middle the orange color first need to go down at 45 degree till next 100px and then it should go at 180 degree for remaining part.
For bottom, from horizontally middle the orange color first need to go down at 45 degree till next 100px and then it should go at 180 degree for remaining part.
All this needs to be done for a single container/section/div.
.grad {
height:100px;
width:100%;
background:linear-gradient(45deg, white 50%, #f3ab2a 0),
linear-gradient(blue 20%, black 0);
}
.grad1 {
height:100px;
width:100%;
background:linear-gradient(-130deg, #f3ab2a 0%, #f3ab2a 0),
linear-gradient(blue 20%, black 0);
}
.grad2 {
height:100px;
width:100%;
background:linear-gradient(45deg, #f3ab2a 50%, white 50%)}
<div class="grad2">
</div>
<div class="grad1">
</div>
<div class="grad">
</div>