Availability: |
| ||||||
Property/method value type: | String primitive | ||||||
JavaScript syntax: | - | myStyle.outline | |||||
CSS syntax: | outline: aColour aStyle aWidth outline: aControl | ||||||
Argument list: | aColour | An outline color value | |||||
aStyle | A style of outlining | ||||||
aWidth | A thickness of the outline | ||||||
aControl | A 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:
style.outlineColor
style.outlineStyle
style.outlineWidth
Because the namespaces do not collide, they can be specified in any order.
Prev | Home | Next |
style.orphans | Up | style.outlineColor |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |