Next.js Discord

Discord Forum

Clippath polygon

Unanswered
Chukar posted this in #help-forum
Open in Discord
ChukarOP
I want to have a div with height and width as 100% and inside it there is some rectangular cut-out. So, I use clipPath polygon.
Now I want to have some radius in the inner cutout rectangular. How to do that?

1 Reply

American Foxhound
.outer {
position: relative;
width: 100%;
height: 100%;
}

.cutout {
position: absolute;
top: 30%;
left: 30%;
width: 40%;
height: 40%;
}
sthlike this?