html - Setting width of Audio Player to screen width -
I'm trying HTML5 and audio tags. I am trying to take the player to the full width of the page. I have set the padding and margin for the body and the whole document at 0 pixels, and when I finish the margin from the top of the page, the player still does not spread to the full width of the page. I am thinking that the player There is a maximum width for any type, because I have not put any margin and padding in the whole document, but it does not make any difference. Thanks! Code is below:
PS: I'm ignoring Firefox for now, and using Chrome
Edit: I change the color of the body element Tested, and filled it up the whole page, so I think that there should be any type of width limit, any work?
& lt ;! DOCTYPE html & gt; & Lt; Html & gt; & Lt; Top & gt; & Lt; Meta charset = "UTF-8" & gt; & Lt; Title & gt; Zhaden's OST playlist & lt; / Title & gt; & Lt; Link rel = "stylesheet" type = "text / css" href = "stylesheet.css" & gt; & Lt; / Head & gt; & Lt; Body & gt; & Lt; Audio id = "audiobar" autoplay control & gt; & Lt; Source src = "C: \ Users \ zhaden \ Music \ iTunes \ iTunes Media \ Music \ Final Fantasy 7 Piano Collection \ Final Fantasy Seventh Piano Collection \ 05 Action. Mp3" Type = "Audio / MPEG" & gt; & Lt; Br> Your browser does not support the audio element. & Lt; / Audio & gt; & Lt; / Body & gt; & Lt; / Html & gt; Html, body {Overflow-X: hidden; / * Ensure that we have horizontal scroll body * {margin: 0 px; / * This is to delete the default margin * /} # audio bar {width: 100%; / * This is to set the audio bar in full width of the page /
player's The maximum width is 800px wide. I will set this player to hide and will use the second library to follow the answers to Shemssegger.
Comments
Post a Comment