The Enchanted Cave 2
Delve into a strange cave with a seemingly endless supply of treasure, strategically choos
4.39 / 5.00 38,635 ViewsGhostbusters B.I.P.
COMPLETE edition of the interactive "choose next panel" comic
4.09 / 5.00 15,161 ViewsHey all
I'm having a little problem here... How do I put a Flash movie on a page using CSS that overlaps everything else? The Flash movie I plan to put on the page is 1000 pixels wide, and I want it to be centred on the page.
I don't have any experience in CSS at all, it isn't anything like the HTML I'm familiar with. I don't intend to learn how to use CSS, I just need some quick help. I've tried google, but I'm not exactly sure what kind of terms to search for and I keep getting unrelated results.
Can someone give me the code and tell me where I should put it, please?
Any help is appreciated. Thanks!
I think you can just use DIV's
so have something like this in your css file:
#flashcont{
margin: auto;
}
Then just put the flash file in the div, like this:
<div id="flashcont">
FLASH FILE
</div> Oh, so replace FLASH FILE with the url? I'll try it out, thanks.
Replace "FLASH FILE" with the embed code for the flash object. I don't know exactly what it is off the top of my head.
Hmm... I'm still not exactly sure. This is the code I put in, but it doesn't seem to make a difference:
#flashcont{
margin: auto;
}
<div id="flashcont">
<object type="application/x-shockwave-flash" data="http://www.swfup.com/uploads/swf-163328.swf" width="1000" height="400" class="file_border">
<param name="movie" value="http://www.swfup.com/uploads/swf-163328.swf" />
</object>
</div>
At 3/23/08 07:52 AM, SkySausage wrote: Hmm... I'm still not exactly sure. This is the code I put in, but it doesn't seem to make a difference:
#flashcont{
margin: auto;
}
<div id="flashcont">
<object type="application/x-shockwave-flash" data="http://www.swfup.com/uploads/swf-1 63328.swf" width="1000" height="400" class="file_border">
<param name="movie" value="http://www.swfup.com/uploads/swf-
163328.swf" />
</object>
</div>
Because your CSS wants to either go in an external CSS stylesheet or in between the <head> tags in a <style></style> tag like so:
<head><style> #flashcont{ margin: auto; }</style></head>
Also you might want to give it a width or it won't work.