Hey, two things...
could some1 tell me the html code to center something & also...
could some1 please give me a html code to get my playlist to play automatically like auto start...
please
Hey, two things...
could some1 tell me the html code to center something & also...
could some1 please give me a html code to get my playlist to play automatically like auto start...
please
<center></center> or <p align=center></p> usually work dunno bout the second one!
To center something, use the style attribute:
For audio, use:PHP Code:<label style="text-align: center"</label>
The document type (The first piece of markup):PHP Code:<audio controls='controls' autoplay='autoplay'>
<source src='SRC' type="audio/ogg" /> <!-- Extension is .ogg -->
<audio src='SRC' type="audio/mp3" /> <!-- Extension is .mp3 -->
A HTML5 compliant browser is required to listen to this music.
</audio>
Edit: To above: The Center tag is not supported as of HTML5.PHP Code:<!doctype html>
Take your div, let's say it's <div id="container">code/content</div>
Head to your stylesheet and center it with: #container {margin: 0 auto}
The 0 tells it to leave it alone vertically (remove it if you want all-round centering) and the auto tells the browser to center it horizontally. Let me know if anything is confusing at all!
Want to hide these adverts? Register an account for free!