1. Home
  2. Computing & Technology
  3. Web Design / HTML

play-during

By Jennifer Kyrnin, About.com

play-during Description:

The play-during property defines a sound to be played as background while the element is read.

play-during in CSS Versions:

play-during Syntax:

play-during: <uri> [ mix || repeat ]? | auto | none | inherit

  • <uri>
    A URL pointing to the sound file to play.
  • mix
    Mix any inherited play-during sounds with this new sound.
  • repeat
    Repeat the sound if it's too short to fill the entire duration of the element.
  • auto
    Continue to play the sound of the parent element, without restarting.
  • none
    Silence, including any parent element sounds.
  • inherit
    The element should have the same play-during setting as the parent.

play-during Initial Value:

auto

play-during Applies To:

All elements.

play-during Inheritance:

This property is not inherited.

play-during Browser Support:

Not supported by visual browsers.

play-during media type:

  • Aural

play-during Examples:

Standard play-during property

<p style="play-during : url("sound.wav") repeat;">
While this paragraph is read, the sound.wav file will repeat in the background.
</p>

play-during Special Notes:

  • The precise method of rendering the sound is up to the user-agent.

More play-during Information

Return to the Style Library

Explore Web Design / HTML

More from About.com

  1. Home
  2. Computing & Technology
  3. Web Design / HTML
  4. CSS
  5. Style Properties
  6. CSS Style Property: play-during

©2008 About.com, a part of The New York Times Company.

All rights reserved.