I'm in the process of creating a website similar to the design of DuckDuckGo, featuring a rounded background with cards placed on top:
https://i.sstatic.net/RUO45.png
However, my current implementation has resulted in the clip-path cutting off the cards:
https://i.sstatic.net/0eDOH.png
The code I have so far includes the following CSS for the section:
.two {
background-color: #ff6b6c;
clip-path: ellipse(99% 66% at 48% 77%);
}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css">
<section class="two" style="margin-top:250px;">
<div class="row">
<div class="col">
<div class="card" style="width: 18rem;">
<div class="card-header">
Featured
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
</div>
</div>
<div class="col">
<div class="card" style="width: 18rem;">
<div class="card-header">
Featured
</div>
<ul class="list-group list-group-flush">
<li class="list-group-item">Cras justo odio</li>
<li class="list-group-item">Dapibus ac facilisis in</li>
<li class="list-group-item">Vestibulum at eros</li>
</ul>
</div>
</div>
</div>
</section>
Any suggestions on how to resolve this issue?