You are here: Reference > JavaScript > client-side > style handling > properties > browser specific extensions > MozOutline
MozOutline style property
3.6 |
Sets or retrieves the outline of the element.
Deprecated and the support for it has been removed in Firefox 3.6.
Use the cross-browser outline property instead.
Syntax:
You can find the related objects in the Supported by objects section below.
This property is read/write.
CSS page for this property: -moz-outline |
Possible values:
The type of this property is string.
One of the following values: | ||||||||||||
|
Description of values:
Sets or retrieves the color of the outline. | |||||||
Sets or retrieves the style of the left, right, top, and bottom borders of the object. | |||||||
Sets or retrieves the width of the outline. | |||||||
Takes the value of this property from the computed style of the parent element. |
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the -moz-outline property:
|
||||
<head> <style> .example { -moz-outline: 5px solid blue; border: 5px solid black; } </style> </head> <body> <div class="example">Outline and border</div> </body> |
||||
|
||||
Did you find this example helpful?
|
Example HTML code 2:
This example illustrates the use of the MozOutline property in JavaScript:
|
||||
<head> <script type="text/javascript"> function SetMozOutline () { var div = document.getElementById ("myDiv"); var input = document.getElementById ("myInput"); if ('MozOutline' in div.style) { div.style.MozOutline = input.value; } else { alert ("Your browser doesn't support this example!"); } } </script> </head> <body> <div id="myDiv">Outline: 1px solid blue</div> <br /><br /><br /> <input id="myInput" type="text" value="4px dotted blue" /> <button onclick="SetMozOutline ();">Set MozOutline!</button> </body> |
||||
|
||||
Did you find this example helpful?
|
Supported by objects:
CSSStyleDeclaration, htmlElement.style
HTML elements:
a, abbr, acronym, address, applet, b, bdo, big, blink, blockquote, body, button, caption, center, cite, code, dd, del, dfn, dir, div, dl, dt, em, embed, fieldset, font, form, h1, h2, h3, h4, h5, h6, hr, html, i, iframe, img, input:button, input:checkbox, input:file, input:image, input:password, input:radio, input:reset, input:submit, input:text, ins, isindex, kbd, label, legend, li, marquee, menu, object, ol, optgroup, option, p, pre, s, samp, select, small, span, strike, strong, sub, sup, table, tbody, td, textarea, tfoot, th, thead, tr, tt, u, ul, var
Related pages:
MozOutlineColor
MozOutlineOffset
MozOutlineRadius
MozOutlineRadiusBottomleft
MozOutlineRadiusBottomright
MozOutlineRadiusTopleft
MozOutlineRadiusTopright
MozOutlineStyle
MozOutlineWidth
outline
outlineColor
outlineOffset
outlineStyle
outlineWidth
MozOutlineOffset
MozOutlineRadius
MozOutlineRadiusBottomleft
MozOutlineRadiusBottomright
MozOutlineRadiusTopleft
MozOutlineRadiusTopright
MozOutlineStyle
MozOutlineWidth
outline
outlineColor
outlineOffset
outlineStyle
outlineWidth
External links:
User Contributed Comments