How to decrease the padding around a swf movie (widget)

  • 1
  • Question
  • Updated 9 years ago
  • Answered
I've created a flash object (.swf) and placed it inside of a Widget (Google Gadget) so that it can be properly centered. The problem I have now is the space (padding) around the swf.
I want to reduce (or remove) the padding around swf object - is there a way I can do this?

Below is the HTML I dropped in the Widget object (embed tags removed):

object width="900" height="350">
<param name="wmode" value="transparent">
<param name="movie" value="">
embed src="" quality="high" wmode="transparent" width="900" height="350" align="middle" type="application/x-shockwave-flash" pluginspage="">

Photo of Mk


  • 24 Posts
  • 0 Reply Likes
  • confused

Posted 9 years ago

  • 1
Photo of Emmy


  • 5892 Posts
  • 299 Reply Likes
Hello Mk,

I am not exactly sure how to do that and will see what I can find out!

Photo of Sanja

Sanja, Official Rep

  • 10698 Posts
  • 495 Reply Likes
Hello Mk

Would you mind posting the page url where you have this code so that I can take a closer look at it and hopefully give you suggestions as to how we can decrease the padding. Thanks!
Photo of Ed-a-Torials @ Honey Bear Playhomes

Ed-a-Torials @ Honey Bear Playhomes, Champion

  • 2582 Posts
  • 279 Reply Likes
I think rather it has to do with either the flash size out of perfect or the SWF itself than a code issue. Flash files are quite simple beasts and if properly sized contain no padding as such unless placed there by the designer in the FLA file before becoming a SWF media.

It is kind of like a TV and the Screen. The Screen the is the flash and the code is the box the screen sits in. In your case the code you used contains no padding and would have a flash to background transition.

If in the code you use the width and height settings are not set to the flash files actual settings sometimes this creates a colored border around your flash or more often than not a white border which restricts other objects placed on top, bottom or side from coming in contact with the flash. I have had flash components on most of my sites and found with some (not all) this happens frequently.

To begin with I would play around with the width and height settings (most often it is 2 times for height and 2 times for width per code)

I posted a thread here which may be what you are looking for as you have the option to adjust the dimensions and see with one click if it is properly set. It is really perfectly suited for you I think.

MK could you post the URL to the page which contains the flash media? That would speak volumes and be most helpful to find out the cause.

Happy site building

You can find me with my head in the honey pot here..

Honey Bear Playhomes Tips and Favs in one place... A Honey bear Playhomes Tip ;)