CSS outline

Previous Next

Demo of the different values of the outline property.

Click the property values below to see the result:

outline: 1px dotted green;
outline: 5px dotted green;
outline: 5px solid green;
outline: 5px solid red;
outline: 5px dashed red;
outline: 5px inset red;
outline: 5px outset red;

Play more with the code in our Tryit yourself editor: Try it Yourself ❯