outline

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

Syntax

{outline: sOutline }

Possible values

sOutline

String that specifies or receives one or more of the following space-delimited values:

outline-color

Any of the range of color values available to the outline-color property. It has a default value of invert.

outline-style

Any of the range of style values available to the outline-style property. It has a default value of none.

outline-width

Any of the range of width values available to the outline-width property. It has a default value of medium.

This property is not inherited.

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.

Standards information

This documentation is preliminary and subject to change.

Applies to

a, abbr, acronym, b, bdo, big, blockquote, body, button, caption, center, cite, code, dd, del, dfn, dir, div, dl, dt, em, embed, fieldset, font, form, frame, hn, hr, i, iframe, img, input type=button, input type=checkbox, input type=file, input type=image, input type=password, input type=radio, input type=reset, input type=submit, input type=text, ins, isindex, kbd, label, li, listing, marquee, menu, nobr, object, ol, p, plaintext, pre, q, s, samp, small, span, strike, strong, sub, sup, table, td, textarea, th, tt, u, ul, var, xmp

See also

Concepts

outline-color
outline-style
outline-width

Send feedback about this topic to Microsoft. © 2011 Microsoft Corporation. All rights reserved.