<div class="rounded-box">シンプルな角丸</div>
<div class="complex-rounded-box">複雑な角丸</div>
/* シンプルな角丸のボックス */
.rounded-box {
width: 200px;
height: 100px;
background-color: #f0f0f0;
border-radius: 10px;
margin-bottom: 20px;
display: flex;
justify-content: center;
align-items: center;
font-family: Arial, sans-serif;
}
/* 複雑な角丸のボックス */
.complex-rounded-box {
width: 300px;
height: 150px;
background-color: #e0e0e0;
border-radius: 20px 40px 60px 80px / 40px 60px 80px 100px;
display: flex;
justify-content: center;
align-items: center;
font-family: Arial, sans-serif;
}
This Pen doesn't use any external CSS resources.
This Pen doesn't use any external JavaScript resources.