# Swfobject: place swf inside a container

**URL:** https://forum.kirupa.com/t/swfobject-place-swf-inside-a-container/298081
**Category:** Uncategorized
**Created:** [October 13, 2009, 2:12pm UTC](https://forum.kirupa.com/t/swfobject-place-swf-inside-a-container/298081 "2009-10-13T14:12:10Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![leonk](https://avatars.discourse-cdn.com/v4/letter/l/6bbea6/32.png) [@leonk](https://forum.kirupa.com/u/leonk)
#### Post date: [October 13, 2009, 2:12pm UTC](https://forum.kirupa.com/t/swfobject-place-swf-inside-a-container/298081/1 "2009-10-13T14:12:10Z")

</div>

Hi…

Does anyone know how I can use SWFobject to place a SWF inside a container?

I am using SWFobject to make the width and height 100% so that it takes the entire browser screen.  
However, I want my swf to stay within a horizontal border (so that it takes up say 100% height and 90% width). But, even if I place the flashcontent div (that I target with SWFobject) within another container div (which I only target with CSS, with 90% width and center it). The SWF file will take up the whole page, going over the margins of the container div.

Thanks
