Properties
CSS
outline
The outline property is a shorthand property for setting the color, style, and width of an element's outline.
CSS2
- Syntax
- Example | color | color
- Example | color | invert
- Example | style | dashed
- Example | style | dotted
- Example | style | double
- Example | style | groove
- Example | style | hidden
- Example | style | inset
- Example | style | none
- Example | style | outset
- Example | style | ridge
- Example | style | solid
- Example | width | length
- Example | width | medium
- Example | width | thick
- Example | width | thin
- Example | DOM
- Reference
Syntax
CSS
outline: [ <'outline-color'> || <'outline-style'> || <'outline-width'> ] | inherit
DOM
[window.]document.getElementById("element-id").style.outline = "outline-color outline-style outline-width";
| Initial: | value of the color property, none, medium |
| Applies To: | all elements |
| Inherited: | no |
| Percentages: | NA |
| Media: | visual, interactive |
