CSS Tutorial
Menu
CSS Advanced
Menu
CSS Responsive
Menu
CSS Grid
Menu
Outline offset
The outline-offset property is used to adds space between an outline and the edge/border of an element. The space is transparent between an element and its outline is transparent.
HTML
The outline-offset Property
This paragraph has an outline 15px outside the border edge.
CSS
p {
margin: 30px;
background:#03989E;
border: 1px solid black;
outline: 1px solid black ;
outline-offset: 15px;
}
Output
