Sets the width, style and color of one to four edges of an outline around an element.
Outlines don't take up space in the box model they just sit above the element just beyond the borders. Outlines aren't restricthed to rectangels and can follow the contours of a unjustified paragraph. Values for color style and width are the same as for borders.
- Live Example
- Play with the code in the textarea below.
- color style width
- Default value
- Introduced in CSS version
- Applies to elements
- Browser Support
Browsers IE Firefox Safari Opera Chrome Versions 8 1.5 1.2 7 0.2
See the full list CSS properties and browser support: CSS Properties