How to create CSS Outline

CSS Outline property sets one or more of the individual properties such as outline-style, outline-color and outline-width.

Outline Style Property
outline-style property specifies the outline style of an element like dotted, dashed, solid, etc.

Outline Color Property
outline-style property specifies the outline color of an element.

Outline Width Property
outline-width property specifies the outline width of an element.

Example of CSS Outline

Try the above code with our Free Online HTML Editor.