From CDOT Wiki
Revision as of 18:45, 13 December 2006 by Mdsouza (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


The outline-color property specifies a color for the outline for an element.

The outline properties create a uniform line around an object in order to draw visual attention. An outline is slightly different than a border in several ways: An outline is drawn starting "just outside the border edge" and is allowed to be non-rectangular. Outlines are always rendered on TOP of an element's rendering box and do not influence the box's position or size calculation; the document does not need to be re-flowed when a border is rendered or hidden, but the outline may overlap other nearby elements.


img { outline-color: color }

Legal Values


  • Explicitly sets the value of this property to that of the parent.


  • This value inverts the color of the outline to the opposite value of the color "underneath" the outline to ensure proper contrast.


  • Sets the border to the indicated color value.

Mozilla Recommended Values

Usage Examples

Ext/Doc: img { outline-color: black }
In-Line:  <img SRC="image.gif" STYLE="outline-color: black">


Specification Conformance

Browser Compatibility

See Also