View Full Version : Offsetting from Center?
gorilla1
08-21-2003, 05:53 PM
I have a flash object and I would like to place it at a certain offset (say 150 to the left) of center of the viewer's browser area. Is there a way using a div or other tag to offset from center?
G
MotherNatrsSon
08-21-2003, 06:12 PM
You could do that with a div if you have all the page sizes and the size of the flash file. Just do the math. without any numbers, it is hard to give you anything more.
MNS
Cymru
08-21-2003, 06:20 PM
<div style="text-align:center;width:100%">
<div style="margin-left:150px;width:600px">
FLASH OBJECT HERE
</div>
</div>
On the inner DIV, hange margin-left to the direction and offset you want and change width:600px to however wide the flash object is. Simple.
gorilla1
08-21-2003, 06:35 PM
Cymru,
Nicely done - that does the trick. Thnx.
G
Cymru
08-21-2003, 08:42 PM
No problem. :)
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.