# SWF to Fill Scaling Div Tag

**URL:** <https://forum.kirupa.com/t/swf-to-fill-scaling-div-tag/324822>\
**Category:** flash\
**Created:** [September 10, 2011, 11:39am UTC](https://forum.kirupa.com/t/swf-to-fill-scaling-div-tag/324822 "2011-09-10T11:39:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![e\_owen](https://avatars.discourse-cdn.com/v4/letter/e/df788c/32.png) [@e\_owen](https://forum.kirupa.com/u/e_owen)\
**Post date:** [September 10, 2011, 11:39am UTC](https://forum.kirupa.com/t/swf-to-fill-scaling-div-tag/324822/1 "2011-09-10T11:39:45Z")

</div>

Hello.  
I have a two column web page, the left column (nav) being a fixed width (200px) navigation column and the right column (content) scales to fill to the remaning width of the browser window. I want to embed a SWF at 100% width of the ‘content’ div but when I do so with the Swf is embedded at the window width and so there is 200px overflow on the right hand side.

```auto
swfobject.embedSWF("application.swf", "content", "100%", "100%", "10.0.3", "expressInstall.swf", null, parameters, attributes);

```

I thought the 100% property would be of the div tag the SWF is embedded in, not 100% of the window width - but this is obviously not the case. Is it possible to do what I am thinking or will I need another solution.

Thanks.
