There are three divs that are inside the parent div with display:flex
.
I want to create a border-radius for parent div but something doesn't work.
My code is:
<div style="height:50px;display:flex;width:500px;border-radius: 20px;">
<div style="height:50px;width:30%;background:red"></div>
<div style="height:50px;width:30%;background:blue"></div>
<div style="height:50px;width:40%;background:yellow"></div>
</div>
The border-radius is invisible. It is possible for the child to have width:0%
or width:100%
so the border-radius should be applied for the parent container.
How is it possible to to that?