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

(Excerpt from “CSS − Advanced websites with Cascading Stylesheets” by Rachel Andrew & Dan Shafer)

The shorthand property cue plays short audio signals before and after an element in aural browsers. With cue-before and cue-after, the two sounds can also be defined separately.

Inherited: no

See also: cue-after, cue-before

Value

One or two URLs pointing to sound files. A single value is assigned to both cue-before and cue-after: the same sound plays before and after the HTML element. With two URLs, the first is assigned to cue-before and the second to cue-after.

Default value: none

Compatibility

CSS version: 2

Not supported by any current browser.

Example

The following style rule plays the file ding.wav in aural browsers before and after a div element:

div {
 cue: url(/sounds/ding.wav);
}

  

 

 

 

back to top