style.outline (Property)

A shortcut attribute for defining all the outline settings together.

Availability:

DOM level - 2
JavaScript - 1.5
JScript - 5.0
Internet Explorer - 5.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myStyle.outline
CSS syntax:outline: aColour aStyle aWidth outline: aControl
Argument list:aColourAn outline color value
aStyleA style of outlining
aWidthA thickness of the outline
aControlA control over inheritance

An outline is like a border but it is drawn within the extent of the object. It is intended to be drawn and then removed and is useful for those times when you want to border something without the border taking up any space. Its width is measured inwards from the outer edge of an object.

This property is a means of defining the following style properties with a single assignment:

Because the namespaces do not collide, they can be specified in any order.

See also:style.border, style.outlineColor, style.outlineStyle, style.outlineWidth