# Swf auto-centering in iframe?

**URL:** <https://forum.kirupa.com/t/swf-auto-centering-in-iframe/166099>\
**Category:** Uncategorized\
**Created:** [October 17, 2005, 2:59am UTC](https://forum.kirupa.com/t/swf-auto-centering-in-iframe/166099 "2005-10-17T02:59:28Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![iLikePie](https://avatars.discourse-cdn.com/v4/letter/i/85f322/32.png) [@iLikePie](https://forum.kirupa.com/u/iLikePie)\
**Post date:** [October 17, 2005, 2:59am UTC](https://forum.kirupa.com/t/swf-auto-centering-in-iframe/166099/1 "2005-10-17T02:59:28Z")

</div>

hi all,

sorry about the continual questions, but nothing seems to work out the way i want it to at the moment!

when i have a gif in my iframe, it aligns to teh top of the iframe, but when i just replaced it with an swf, the swf is now centered vertically… i can theoretically resize the iframe but i don’t want to do that, i want to work out why the swf is centered when the gif wasn’t.

i’ve just got no idea why the swf would behave differently.

thanks  
Stuart
