Open this example in the interactive library
Source code
<style>
.demo {
padding: min(6vw, 2rem);
}
</style>
<div class="demo">Apply fluid spacing with a ceiling</div>
Apply fluid spacing with a ceiling with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo {
padding: min(6vw, 2rem);
}
</style>
<div class="demo">Apply fluid spacing with a ceiling</div>