CSS elevation property
CSS elevation property
Description
The elevation property describes the position of a sound source on the vertical axis of the listener’s environment.
Possible values
- angle – Angle values range from -90 degrees to 90 degrees. An angle value of 0deg corresponds to a point horizontal to the listener, 90deg corresponds to a point directly above, and -90deg corresponds to a point directly below.
-
above – Equivalent to a value of 90deg.
-
level – Equivalent to a value of 0 degrees.
-
below – Equivalent to a value of -90 degrees.
-
higher – Shifts the sound source upwards by 10 degrees.
-
lower – Shifts the sound source downwards by 10 degrees.
Applies to
All HTML elements
DOM Syntax
object.style.elevation = "above";
Example
Here’s an example –
<style type = "text/css">
<!--
h1 { elevation: above }
tr.a { elevation: 60deg }
tr.b { elevation: 30deg }
tr.c { elevation: level } -->
</style>