[SWFObject] How to insert the movie on the right place

Geoff Stearns geoff at deconcept.com
Mon May 29 12:27:51 PDT 2006


divs always stretch to 100% of the width of their containing element  
by default, so you'll have to specify a width for that div that holds  
the flash movie.

you could also target the flash movie id and center that if you want to:

#bazeny-septiky-jimky-nadrze {
	margin: 0 auto;
}



On May 29, 2006, at 12:19 PM, Jan Kratochvíl, FlashMedia.cz wrote:

> I tried to use SWFObject - it works fine.
> I have one problem, I don´t know how to instert the movie e.g. with
> right align on my page.
>
> How can I instert this movie e.g. into table with center align ?
>
> I tried this code,but it not works the movie has left alignment.
> --------------------
> <table width="100%" border="0" cellspacing="1" cellpadding="1">
>   <tr>
>     <td><div align="center">
>         <script type="text/javascript">
>    var so = new SWFObject("bazeny-septiky-jimky-nadrze.swf",
> "bazeny-septiky-jimky-nadrze", "785", "400", "8", "#ffffff");
>
>    so.write("flashcontent");
> </script>
>       </div></td>
>   </tr>
> </table>
> --------------------
>
> _______________________________________________
> SWFObject mailing list
> SWFObject at lists.deconcept.com
> http://lists.deconcept.com/listinfo.cgi/swfobject-deconcept.com




More information about the Swfobject mailing list