Layout
z-index
Learn how to use the CSS z-index property.
CSS z-index
The z-index property sets the z index for an HTML element.
Syntax
.element {
z-index: 10;
}
HTML Context Example
<div class="card">
This is a styled element.
</div>
<style>
.card {
z-index: 10;
}
</style>
Notes
Experiment in the CSS playground to see how this affects layout and styling.