Name
elevation — NN n/a IE n/a CSS 2
Synopsis
Inherited: Yes
Given a listener at the center of a three-dimensional sound space
(like in a surround-sound-equipped theater),
elevation
sets the vertical angle of the source of
the sound (for example, in a text-to-speech browser). See also the
azimuth
attribute.
CSS Syntax
elevation:angle
|angleConstant
Value
Your choice of a specific angle (in degrees) or one of the five
constant values. An angle value is any value in the range of -90 to
+90 (inclusive) plus the letters “deg”, as in
90deg
. The value 0deg
is at the
same vertical level as the listener’s ear. To set the angle
above level, the value must be a positive value
(45deg
); below level requires a negative value
(-45deg
). Optionally, you can choose an
angleConstant
value from a library of
descriptions that correspond to fixed points above and below level.
Value |
Equals |
---|---|
above |
|
below |
- |
higher |
+10 degrees from current |
level |
|
lower |
-10 degrees from current |
In combination with the azimuth
attribute, you can
place a sound at any point around a spherical surround-sound stage.
Initial Value
level
Example
H1 {elevation: -45deg} P.heavenly {elevation: above}
Applies To
All elements.
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.