Can anyone please help/guide me to design like this? I tried many solutions but not successful.
Asked
Active
Viewed 335 times
-2

Andrew Morton
- 24,203
- 9
- 60
- 84
-
What are your efforts so far. Please show us your code where you stuck. – Cyberduck Nov 05 '18 at 18:57
-
The search term you are looking for is *scooped corners*. – Andrew Morton Nov 05 '18 at 19:01
-
`I tried many solutions but not successful.` please include those solutions, so we people can know that you actually tried, instead of just asking `code this for me` – Rainbow Nov 05 '18 at 19:02
2 Answers
0
.name{
width:500px;
height:500px;
background-color:green;
position:relative;
}
.rithtopcorner{
width:50px;
height:50px;
background:white;
position:absolute;
top:0;
right:0;
border-bottom-left-radius:100%;
}
.riboco{
width:50px;
height:50px;
background:white;
position:absolute;
top:0;
left:0;
border-bottom-right-radius:100%;
}
.leftoco{
width:50px;
height:50px;
background:white;
position:absolute;
bottom:0;
left:0;
border-top-right-radius:100%;
}
.lefboco{
width:50px;
height:50px;
background:white;
position:absolute;
bottom:0;
right:0;
border-top-left-radius:100%;
}
<div class="name">
<div class="rithtopcorner"></div>
<div class="riboco"></div>
<div class="leftoco"></div>
<div class="lefboco"></div>
</div>
You can use this to solve your problem

reda khaidar
- 1
- 4
0
Try this
.box {
background-color: rosybrown;
height: 160px;
width: 110px;
margin: 25px;
padding: 20px;
position: relative;
overflow: hidden;
}
.box:before {
content: "";
display: block;
background: #fff;
position: absolute;
top: -11px;
left: -8px;
width: 30px;
height: 35px;
border-radius: 20px;
}
.box:after{
content: "";
display: block;
background: #fff;
position: absolute;
top: -11px;
right: -8px;
width: 30px;
height: 35px;
border-radius: 20px;
}
<div class="box">
<div class="inner"> div my div </div>
</div>

Llazar
- 3,167
- 3
- 17
- 24