XML technologies / CSS / Advanced websites with CSS / CSS property reference / volume

The property volume describes the average volume at which an element’s content is read in aural browsers.

Inherited: yes

See also: pitch, pitch-range, richness, stress, voice-family

Values

An absolute value between 0 and 100, a percentage of the parent element’s volume, or one of the following constants:

  • silent: no sound

  • x-soft: the lowest audible volume, equivalent to 0

  • soft: low volume, equivalent to 25

  • medium: medium volume, equivalent to 50

  • loud: very loud, equivalent to 75

  • x-loud: maximum volume, equivalent to 100

Default value: medium

Compatibility

CSS version: 2

Not supported by any current visual browser.

Example

The following style rule reads elements in the class bedrohlich in a louder-than-average voice:

.bedrohlich {
 volume: loud;
}

  

 

 

 

back to top