Home
CSS
CSS Outline
Outline Offset
Tryit: The outline-offset property
Run ❯
Get your
own
website
Result Size:
625 x 534
×
Change Orientation
Save Code
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <html> <head> <style> p { margin: 30px; background:yellow; border: 1px solid black; outline: 1px solid red; outline-offset: 15px; } </style> </head> <body> <h2>The outline-offset Property</h2> <p>This paragraph has an outline of 15px outside the border edge.</p> </body> </html>