I have a problem adding the wrong shape to the div.
I need to get the effect, as in this image:

But I need to get this effect for the whole content div. Not just left or bottom. I tried to adapt the css arrow created using the frame, but that does not give me the right effect.
It is better to use borders with a combination of transparent color and ::before, ::afterpseudo-elements or background-clip.
My HTML structure
.wrapper::before {
display: block;
height: 0px;
width: 0px;
border-left: 5px solid transparent;
border-right: 650px solid transparent;
border-bottom: 50px solid black;
}
.content {
background-color: #f2f2f2;
box-sizing: border-box;
color: #000;
text-transform: uppercase;
}
<div class="wrapper">
<div class="content">
Content
</div>
</div>
Run codeIs there a way to combine pseudo-elements ::afterand ::beforeto add this effect to the whole div?
source
share