Display

Z-index in getcss


You can specify the stack order of an element by the use of the z-index property.

Z-index property of an element can be set with the use of following class:

<div>
<div class="z-index-3">
<p>This element has z-index value equal to 3.</p>
</div>
</div>

This element has z-index value equal to 3.

<div>
<div class="z-index--5">
<p>This element has z-index value equal to -5.</p>
</div>
</div>

This element has z-index value equal to -5.

getcss logo


Designed and maintained with by Sunil

Source code licensed under MIT

Website content & documentation licensed under CC BY-NC-SA 4.0


Creative Commons License
This work is licensed under a Creative Commons Attribution 4.0 International License.

getcss

Become a patron, sponsor, or backer!

Support getcss