For the project, I need to cut out the edge of the (various) input elements, as this is part of the website design. Since the background may vary in different sizes of the screen, the edges should be cut transparently, which means that you should see the background of the bottom element in which the edge is cut.
This is what I have to achieve:

With rounded corners, I would do the following:
div {
padding:30px;
background-color:#c11;
}
input {
display:block;
border-top-right-radius:10px;
border-bottom-left-radius:10px;
background-color:#fff;
border:0;
height:30px;
width:300px;
padding:3px 10px;
}
<div>
<input type="text" placeholder="Search ..." />
</div>
Run codeHide resultHowever, I do not know how to do this. Do you know a way?
source
share