Open main menu

CDOT Wiki β

CSS GUIDE -MOZ-OUTLINE-COLOR

Summary

-moz-outline-color is a Mozilla property extension to CSS that is used to set the color property of an outline of an element.

Media: interactive

Syntax

-moz-outline-color: <color> | invert | inherit;

Legal Values

ValueDescription
inheritInherit the value from parent element.
colorEither a name (red), rgb value (rgb(255,0,0)), or a hex value (#FF0000)
invertDefault value. Performs a color inversion of the background to ensure maximum visibility.

Usage Examples

 -moz-outline-color: #FF0000;  /*make a red outline*/ 

Notes

Specification Conformance

At the release of Firefox 1.5, CSS 2.1 outline-color property is supported. The use of this property is now preferred.

Browser Compatibility

Netscape 6+
Mozilla 0.6+
Firefox 1.0+

See Also

References