Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

outline property

Specifies the color, style, and width of the outline frame.

CSS 2.1, Section 18.4

Syntax

outline: [ color || style || width ]

Property values

one or more of the following space-delimited values:

color

Any of the range of color values available to the outline-color property.

style

Any of the range of style values available to the outline-style property.

width

Any of the range of width values available to the outline-width property.

CSS information

Applies ToAll elements
Mediavisual
Inheritedno
Initial Value

Standards information

Remarks

Displaying an outline does not cause reflow, no matter how wide the outline is. The outline frame is drawn over an element, and does not influence the position or size of the box, or of any other boxes.

A Windows Store app using JavaScript places the smallest contiguous outline around all elements or shapes that have an outline. Therefore, an outline may be non-rectangular if different sized elements or shapes are grouped together.

The outline property is supported in standards-based document modes. For more info, see How to Enable Standards Support.

See also

currentStyle
runtimeStyle
style
Reference
outline-color
outline-style
outline-width

 

 

Show:
© 2014 Microsoft