Open this example in the interactive library
Source code
<style>
.demo {
border-radius: 1rem 1rem 0 0;
}
</style>
<div class="demo">Round only the top corners</div>
Round only the top corners with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo {
border-radius: 1rem 1rem 0 0;
}
</style>
<div class="demo">Round only the top corners</div>