Align Embedded object (.swf) to center? - Printable Version +- Support Forums (https://www.supportforums.net) +-- Forum: Categories (https://www.supportforums.net/forumdisplay.php?fid=87) +--- Forum: Coding Support Forums (https://www.supportforums.net/forumdisplay.php?fid=18) +---- Forum: PHP The Hypertext Preprocessor (https://www.supportforums.net/forumdisplay.php?fid=21) +---- Thread: Align Embedded object (.swf) to center? (/showthread.php?tid=6668) |
Align Embedded object (.swf) to center? - Extasey - 04-28-2010 I've been throwing together a website to put on the back of my school project site in order to load a proxy and a few games for us to play with at school. So far, here is my progress: http://eshlads.cwahi.net/Photos/unicorn.php My question is, how the hell do I align that game in the centre? I've tried all the different alignments dreamweaver shows up, and some of my own made up ones, haha. This is the code I am currently using to "align" the object: PHP Code: <object width="653" height="490" align="middle"> Used: PHP Code: <center><object width="653" height="490" align="middle"> And it worked fine. RE: Align Embedded object (.swf) to center? - Lord-Nikon - 06-13-2010 Is your link still active? Can't seem to open the page. What I maybe do suggest is to put your <object></object> in a container div and align that center using margin: 0 auto; you have to give it a fixed width though. Since I can't access your link I can't test before giving you the advise, but please do try that and let me know if it works. RE: Align Embedded object (.swf) to center? - Project Evolution - 06-23-2010 Code: <object width="100" height="100" align="center"> That should work. RE: Align Embedded object (.swf) to center? - Charlie - 06-23-2010 Just wrap the object in a div. PHP Code: <div align="center"> RE: Align Embedded object (.swf) to center? - saumil - 06-24-2010 ok thanks its usefull RE: Align Embedded object (.swf) to center? - Clonex - 07-24-2010 Put it in a div as Charlie says |