954,606 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

SWF Object Causing IE top margin problems

SWF Object Causing IE top margin problems
I have a flash mp3 player on my website that is causing the main wrapper of the page to shift down by about 3px. The pages display perfectly in Fire Fox but when I open them in Internet Explorer 8 there is appears to be a margin set (same colour as the background).

When I remove the SWF from the page it works fine in all browsers. I have tried changing the margin-top to -3px. That works for IE but when I open the page in Fire Fox the top couple of pixels of the wrapper is cut off.

I tried using a conditional stylesheet to change the top margin to -2px when IE is being used. That was able to get rid of the white space but there is still a background colour space between the main wrapper and the top. As though the wrapper shifted down a couple px.

Any suggestions would be greatly appreciated!

juseasy
Newbie Poster
4 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

A conditional stylesheet should fix it. This goes under your stylesheet link in the head section:
Code:

The new stylesheet (ie8fix.css) should only contain the negative margin fix.

maryparker
Newbie Poster
10 posts since Jan 2011
Reputation Points: 10
Solved Threads: 1
 

thanks maryparker...but I've tried that already. Still having the same problem

juseasy
Newbie Poster
4 posts since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

Hi. I'm not sure if your problem is similar to mine. I'm embedding flash content with SWFobject and div tag. This displays correctly in Firefox and Chrome, but when I load it in IE, a big margin appear to bottom and right. Have you solved the problem? Thanks.

giobongio
Newbie Poster
1 post since Feb 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: