Dev Helpers
← Back

Proof margin inset

Proof margin inset with native CSS. The preview includes a small shared demo stylesheet.

Open this example in the interactive library

Source code

<style>
  .demo {
    outline: 1px dashed #94a3b8;
    outline-offset: -0.5rem;
    padding: 1.5rem;
    border: 1px solid #475569;
  }
</style>
<div class="demo">Keep all text inside the trim guide.</div>