Custom CSS for <audio> tag?

Fela Maslen picture Fela Maslen · Sep 25, 2010 · Viewed 123.8k times · Source

I'm building a music player web application which implements the HTML5 audio tag, however would like it to look consistent across browsers - is it possible to define my own custom CSS? And how?

cheers

Fela

Answer

Brian Campbell picture Brian Campbell · Sep 25, 2010

There is not currently any way to style HTML5 <audio> players using CSS. Instead, you can leave off the control attribute, and implement your own controls using Javascript. If you don't want to implement them all on your own, I'd recommend using an existing themeable HTML5 audio player, such as jPlayer.