I'm trying to achieve curved corners at the top left and top right of my div
, but the border-top-left-radius
and border-top-right-radius
properties don't seem to work for me.
Here is the HTML code:
<div id="trape"></div>
And the CSS code:
#trape{
border-bottom: 100px solid red;
border-left: 0 solid transparent;
border-right: 50px solid transparent;
height: 0;
width: 100px;
border-top-left-radius:5px;
border-top-right-radius:10px;
}
I am aiming for an output similar to the image linked below