Open this example in the interactive library
Source code
<style>
.demo {
padding: 1.5rem 2rem 0.5rem 1rem;
}
</style>
<div class="demo">Asymmetric padding</div>
Asymmetric padding with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo {
padding: 1.5rem 2rem 0.5rem 1rem;
}
</style>
<div class="demo">Asymmetric padding</div>