From The Blog

nospace

Tip : Strange space under Flash Movie

I design websites… a lot. Every now and then, for no apparent reason, HTML and web design can throw a curveball at me.  I recently had to...

I design websites… a lot. Every now and then, for no apparent reason, HTML and web design can throw a curveball at me.  I recently had to exhaustively search the web for a solution to a seemingly simple problem.

With a recent website I designed… (simple table layout, nice clean css), I was noticing a space between the flash movie that I had designed and put on the page.  I couldn’t figure it out.  My css was clean, the tables were pixel perfect… but no matter what I did, I couldn’t get the damned space away.

I did exhaustive research (until 2 am), and finally got an answer.

When you encounter this issue, you can use this little snippet of css magic to eliminate the space. Generally the issue is when you want to use a flash movie and have a background butt right up against the bottom of it.  Who knows why browsers can’t sometimes see the code the way we see it.

td object, td embed { display:block; }

Good luck!

space nospace

Tags: 

  1. Ky Lane 15. Mar, 2010 at 4:47 am #

    Thanks for this! It was sending me mad!

  2. Crystal 15. Mar, 2010 at 7:35 pm #

    Thank you so much for addressing this!! However, I’m not sure where to input the code? I’ve tried lots of spots and it keeps messing my code… see below…


    <!–

    Content on this page requires a newer version of Adobe Flash Player.

    <!–

    • Stephen Rovetti 16. Mar, 2010 at 5:45 am #

      This I don’t see any thing in the code that deals with placement, etc. It’s really about what’s happening in your css.
      1- What editor are you using, or is it a CMS / Blog
      2- Where is the Flash item being placed?
      3- Do you have an URL that I can look at?

      Thanks for checking out my blog!

  3. James 08. Apr, 2010 at 12:51 pm #

    ok, took me a while to figure out how to use this bit of css as im a bit of a noob to css but finally got it working, only it doesnt work in ie. fine in firefox, chrome, opera but not ie. any solution?

  4. Rovettidesign 08. Apr, 2010 at 1:50 pm #

    Do you have an example of the code? Send me a link via my contact form, and I'll take a look at it and see if I can figure it out. Which version of IE are you looking at it with?

  5. Jonathan 29. Jul, 2010 at 6:29 am #

    Thank you!

Leave a Reply