Share via


outline-width

Sets the width of the outline frame.

Syntax

{outline-width: sWidth }

Possible values

sWidth

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

medium

Default. About 4px.

thin

Less than the default width.

thick

Greater than the default width.

width

A floating-point number, followed by an absolute units designator (cm, mm, in, pt, or pc) or a relative units designator (em, ex, or px).

This property has a default value of medium. It 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

Important

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
outline-color
outline-style

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