SWFObject Question:

How to avoid that extra whitespace is created underneath my SWF?

Tweet Share WhatsApp

Answer:

When using dynamic publishing and a strict HTML DOCTYPE Firefox, Safari and Opera may create a few pixels whitespace underneath your Flash movie.

To avoid this make sure that your object element is set as a block level element, which can be achieved with the following CSS style rule:

<style type="text/css" media="screen">
object { display:block; }
</style>

Download SWFObject PDF Read All 29 SWFObject Questions
Previous QuestionNext Question
How to pass URIs or HTML code as a value using flashvars?Tell me Do SWFs embedded with SWFObject 2 display in the Sony PS3 or Nintendo Wii web browsers?