Home
CSS
CSS Outline
Tryit: Outline intro
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 { border: 2px solid black; outline: #4CAF50 solid 10px; margin: auto; padding: 20px; text-align: center; } </style> </head> <body> <h2>CSS Outline</h2> <p>This element has a 2px black border and a green outline with a width of 10px.</p> </body> </html>