Revision 8448 of z-index

  • Revision slug: CSS/z-index
  • Revision title: z-index
  • Revision id: 8448
  • Created:
  • Creator: Edoceo
  • Is current revision? No
  • Comment

Revision Content

Summary

The z-index property specifies the order of the element along the z axis. Larger number are displayed infront of lower numbers, negative numbers are allowed. Elements start at point 0 along this axis generally only an increment/decrement of this value is needed.

  • Initial Value: 0
  • Applies to: all elements
  • Inherited: Yes

Syntax

z-index: {{mediawiki.external('integer value')}}

Examples

div {
	z-index: 1;
}

h1 {
	z-index: -1;
} 
{{ wiki.languages( { "pl": "pl/CSS/z-index" } ) }}

Revision Source

<h3 name="Summary"> Summary </h3>
<p>The z-index property specifies the order of the element along the z axis.  Larger number are displayed infront of lower numbers, negative numbers are allowed.  Elements start at point 0 along this axis generally only an increment/decrement of this value is needed.
</p>
<ul><li> Initial Value: 0
</li><li> Applies to: all elements
</li><li> Inherited: Yes
</li></ul>
<h3 name="Syntax"> Syntax </h3>
<p><b>z-index: {{mediawiki.external('integer value')}}</b>
</p>
<h3 name="Examples"> Examples </h3>
<pre>div {
	z-index: 1;
}

h1 {
	z-index: -1;
} 
</pre>
{{ wiki.languages( { "pl": "pl/CSS/z-index" } ) }}
Revert to this revision