You are here: Reference > CSS > properties > browser specific extensions > -moz-outline

-moz-outline property

Browser support:
3.6
Sets 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.
JavaScript page for this property: MozOutline. You can find other example(s) there.

Possible values:

 One of the following values: 
 Any of the following values (use the space character to separate them, each value can be used only once): 
<-moz-outline-color>
<-moz-outline-style>
<-moz-outline-width>
inherit

Description of values:

-moz-outline-color
Sets the color of the outline.
-moz-outline-style
Sets the style of the left, right, top, and bottom borders of the object.
-moz-outline-width
Sets the width of the outline.
inherit
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? yes no

Supported by tags:

Related pages:

External links:

User Contributed Comments

Post Content

Post Content