PDA

View Full Version : How to position a Flash movie flush with right margin



afox
19 May 2008, 09:19 PM
I am trying to place a Flash movie on the home page of my website so that it aligns flush with the right margin. The page template I'm using consists of 2 columns -- the text fills the left column, and the flash movie is the only thing in the right column. But the movie is aligning with the left margin of the right column.

Here's a preview:

http://www.spicelandfriends.org/test5.dsp

(The Flash movie is still a work in progress by the way; I'm designing it with Swish and I know it still needs some work.)

Currently on the "live" home page, I am just using a static image, which right-aligns:

http://www.spicelandfriends.org/

When I use just a plain image (as in the live home page), I can select whether I want to left-align, right-align, or center. But to add a Flash object, I have to use 'html mode' (which I know very little about other than just the basics). The movie left-aligns (in the right column on the page where I placed it) by default.

To embed the movie, I used the following code:

<embed
src="http://www.box.net/shared/static/7ebatgbok0.swf"
width="260"
height="347"
allowscriptaccess="always"
allowfullscreen="true"
/>

(I just Googled something like 'how to embed a flash movie' and this is the first code I tried that worked. The actual Flash file is stored in my box.net account.)

Is there a simple piece of code that I can add to force the movie to right-align?

jeremywilken
02 Jun 2008, 03:31 PM
Put it inside a DIV which is aligned right.