# Space around \<object\>

**URL:** <https://forum.kirupa.com/t/space-around-object/186482>\
**Category:** Uncategorized\
**Created:** [April 21, 2006, 3:59pm UTC](https://forum.kirupa.com/t/space-around-object/186482 "2006-04-21T15:59:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![leahgrace](https://avatars.discourse-cdn.com/v4/letter/l/f17d59/32.png) [@leahgrace](https://forum.kirupa.com/u/leahgrace)\
**Post date:** [April 21, 2006, 3:59pm UTC](https://forum.kirupa.com/t/space-around-object/186482/1 "2006-04-21T15:59:46Z")

</div>

Is there any way to get rid of the space that appears around an embedded swf when you put the \<object\> tag around it. I’ve used a style sheet to specify that the object have 0px for both padding and margins but it still creates all this white space around my swf. The only way I can get rid of it is to get rid of the \<object\> tag, but it’s sort of necessary, isn’t it?

---

<div class="post-metadata">

**Author:** ![Ankou](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/ankou/32/1351_2.png) [@Ankou](https://forum.kirupa.com/u/Ankou)\
**Post date:** [April 21, 2006, 6:35pm UTC](https://forum.kirupa.com/t/space-around-object/186482/2 "2006-04-21T18:35:49Z")

</div>

Did you check the padding/margins of the elements around the object tag? Like if you have a paragraph before and after the object, make sure those aren’t causing the extra white space.

Otherwise… come code to look at would be helpful.
