Visit Mozilla.org

CSS:-moz-outline

From MDC

« CSS Reference « CSS Reference:Mozilla Extensions

[edit] Summary

In Gecko-based applications, -moz-outline is used to set the outline of an element. An outline is a line that is drawn around elements, outside the border edge, to make the element stand out:

Starting with Gecko 1.8 (Firefox 1.5), the standard CSS 2.1 outline property is supported as well. Use of outline is preferred to -moz-outline.

[edit] Syntax

-moz-outline: [-moz-outline-color || -moz-outline-style || -moz-outline-width | inherit] ;

[edit] Values

-moz-outline-color
Sets the outline color. See -moz-outline-color.
-moz-outline-style
Sets the style of the outline. See -moz-outline-style.
-moz-outline-width
Sets the width of the outline. See -moz-outline-width.

[edit] Related properties

[edit] Examples

hbox.example {
  /* a solid red outline that is 10px width */
  -moz-outline: red solid 10px;
}