Home › CSS Tutorial › CSS outline
CSS outline
A line outside the border.
Outlines do not take space and can be offset. Never remove focus outlines without a replacement.
Example code
<style>
p{outline:3px dashed tomato;outline-offset:6px;margin:16px}
</style>
<p>Outlined</p>