# Elevation [Elevation](https://m3.material.io/styles/elevation) is the relative distance between two surfaces along the z-axis. Material's elevation system is deliberately limited to just a handful of levels. This creative constraint means you need to make thoughtful decisions about your UI’s elevation story.  * [Design article](https://m3.material.io/styles/elevation) * [API Documentation](#api) * [Source code](https://github.com/material-components/material-web/tree/main/elevation) ## Usage Elevation can be set from 0 to 5 using the `--md-elevation-level` CSS custom property. The elevation will automatically fill the nearest `position: relative` element's size and shape.  ```html