Skip to content

Instantly share code, notes, and snippets.

@sidepodcast
Created February 1, 2012 02:10
Show Gist options
  • Save sidepodcast/1714602 to your computer and use it in GitHub Desktop.
Save sidepodcast/1714602 to your computer and use it in GitHub Desktop.
iOS5 audio example for normalize.css (using dabblet)
audio { display: inline-block; *display: inline; *zoom: 1; }
audio:not([controls]) { display: none; }
div {
background: #fe57a1;
color: #fafafa;
}
.chunky-div > audio:not([controls]) { background: #444; }
.svelte-div > audio:not([controls]) { background: #444; height: 0; }
<div>Normal</div>
<br>
<div class=chunky-div>Chunky <audio></audio></div>
<br>
<div class=svelte-div>Svelte <audio></audio></div>
{"view":"split","prefixfree":"1","page":"css"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment