Forum Moderators: coopster

Message Too Old, No Replies

script embedded video

         

member22

8:23 pm on Sep 23, 2008 (gmt 0)

10+ Year Member



Hi,

I am trying to align my video to the center but I am missing a line of code it is currently aligned to the left ?

anyone knows how to align it to the right.

<div id="container"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</div>
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript">
var s1 = new SWFObject("player.swf","ply","328","200","9","#FFFFFF");
s1.addParam("allowfullscreen","true");
s1.addParam("allowscriptaccess","always");
s1.addParam("flashvars","file=myvideo.flv&image=preview.jpg");
s1.write("container");
</script>

Thank you for your help,

PHP_Chimp

10:08 pm on Sep 23, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



For positioning you should really look at CSS. Google CSS and there are plenty of tutorials on the web that will get you started.
HTML and CSS are basic skills that you need to produce web pages, so it is well worth learning. It wont take you long to work it out, as it is quite easy, so you will be positioning your content where you want it in no time.

You may want to look at the CSS property text-align, as generally browsers will align all content to this value (just be careful as the value is inherited).
You could also use padding to force the object into one side of the box.

dreamcatcher

7:02 am on Sep 25, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<div id="container" style="text-align:center">

dc