Open this example in the interactive library
Source code
<style>
.demo {
width: fit-content;
border-radius: 9999px;
padding-inline: 1rem;
}
</style>
<div class="demo">Make a pill-shaped label</div>
Make a pill-shaped label with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo {
width: fit-content;
border-radius: 9999px;
padding-inline: 1rem;
}
</style>
<div class="demo">Make a pill-shaped label</div>