Skip to content Skip to sidebar Skip to footer

Horizontally Align An Html5 Audio Element In A Div

I got this simple div: #div-2 { margin-left: auto; margin-right: auto; } and an html5 audio element in the body of my page:

Solution 2:

<div align="center" id="player">
<audio controls>
<source src="name.mp3" type="audio/mpeg">
Unsupported browser!
</audio>
</div>

Post a Comment for "Horizontally Align An Html5 Audio Element In A Div"