CSS/MP3 question

Out of context: Reply #2

  • Started
  • Last post
  • 3 Responses
  • fusionpixel0

    CSS2 - The :before Pseudo-element

    The ":before" pseudo-element can be used to insert some content before an element.

    The style below will play a sound before each occurrence of a header one element.

    h1:before
    {
    content: url(beep.wav)
    }

    CSS2 - The :after Pseudo-element

    The ":after" pseudo-element can be used to insert some content after an element.

    The style below will play a sound after each occurrence of a header one element.

    h1:after
    {
    content: url(beep.wav)
    }

View thread