Open this example in the interactive library
Source code
<style>
.demo {
outline: 2px solid #1d4ed8;
outline-offset: 3px;
}
</style>
<div class="demo">Draw an outline outside the border</div>
Draw an outline outside the border with native CSS. The preview includes a small shared demo stylesheet.
Open this example in the interactive library
<style>
.demo {
outline: 2px solid #1d4ed8;
outline-offset: 3px;
}
</style>
<div class="demo">Draw an outline outside the border</div>