Open this example in the interactive library
Source code
<style>
@media (min-width: 30rem) and (max-width: 48rem) {
.demo {
outline: 3px solid teal;
}
}
</style>
<div class="demo">Use a breakpoint range</div>
Use a breakpoint range with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
@media (min-width: 30rem) and (max-width: 48rem) {
.demo {
outline: 3px solid teal;
}
}
</style>
<div class="demo">Use a breakpoint range</div>