Hello! Jeroen, I love your awesome video tutorials! I've finally found what I was looking for because of you! Thank you so much. Anyway, I have a simple question: I was wondering how to center the video on the page. There should be a simple code for that, right? Thanks a lot guys!
do you mean center the whole player, or center the video within the player???
simple and crude would be to just in-line style the divbc.. <div id="player" style="text-align:center">
for more involved centering, including vertical centering, use Google "CSS Center" to find examples and tutorials like this: [url=http://www.w3.org/Style/Examples/007/center]Web Style Sheets CSS tips & tricks Centering Things[/url]
Change from the WYSIWYG- to the XHTML-Editor and put your video between two Center-Tags:
<center> [flv:http://bluesdiary.com/wp/video/Gary_Moore_-_Story_Of_The_Blues.flv 320 240] <p style="TEXT-ALIGN: center"> *Gary Moore - Story Of The Blues* </p> </center>
It's embedded in a page with a lot of other stuff. The page's body element currently has text-align: left. Do I have to change the body tag? Is there no way I can put another tag around it?
Hmmm. Tried changing the body tag to text-align:center but that didn't seem to help either. Could it be because this is an old table-layed out site? Here's the page I'm working on: http://www.aashe.org/index_rotator.php
Aha! I finally figured it out. I was wrapping my <div> and <table> tags around the <script> tags. But, I was not putting the <div id="container"> tag inside them too. As soon as I put the <div id="container"> tag inside the tags suggested above, everything worked like a charm.
<script type='text/javascript' src='jw/swfobject.js'></script> <script type="text/javascript"> var so = new SWFObject('jw/player.swf','mpl','800','250','9'); so.addParam('allowscriptaccess','always'); so.addParam('allowfullscreen','true'); so.addParam('flashvars','&file=jw/sports.xml&backcolor=000000&frontcolor=565556&playlistsize=400&playlist=right&'); so.write('player'); </script>