SWF Object Causing IE top margin problems

Discussion in 'HTML & Website Design' started by juseasy, Jan 28, 2011.

  1. #1
    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.

    Any suggestions would be greatly appreciated!
     
    juseasy, Jan 28, 2011 IP
  2. radiant_luv

    radiant_luv Peon

    Messages:
    1,327
    Likes Received:
    34
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Link to the issue or post code for markup/css.
     
    radiant_luv, Jan 28, 2011 IP
  3. Cash Nebula

    Cash Nebula Peon

    Messages:
    1,197
    Likes Received:
    67
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Is it just in IE8 or the other versions as well?

    If nothing else works, a conditional stylesheet should fix it. This goes under your stylesheet link in the head section:
    
    <!--[if IE 8]>
            <link rel="stylesheet" type="text/css" href="ie8fix.css" />
    <![endif]-->
    
    Code (markup):
    The new stylesheet (ie8fix.css) should only contain the negative margin fix.
     
    Cash Nebula, Jan 28, 2011 IP
  4. juseasy

    juseasy Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks Cash Nebula...that took care of the white space...but now there is a gap between the wrapper and the top of the browser (2px space of background color).
     
    juseasy, Jan 29, 2011 IP