This is my code in which I want to develop a navigation bar similar to the attached image. For shadow I searched and found that on wrapping the parent div we can give shadow using dropshadow() but now I want to give solid 2px border for this, I tried ::before but that didn't work. I am unable to understand the reason.
.mybar{
background-color: black;
width: 90%;
height: 40px;
clip-path: polygon(0 0,100% 0%,95% 100%,5% 100%);
padding: 0px;
}
.forshadow{filter: drop-shadow(0 0 0.45rem #ac04cb);}
.mybar::before{
content: " ";
background-color:#d673ff ;
width:93%;
height: 43px;
}
<div class="forshadow">
<div class="mybar">
</div>
</div>
