iFrame background problem in FF

Discussion in 'HTML & Website Design' started by vexx, Nov 18, 2007.

  1. #1
    Hey,

    I have a sidebar iFrame that loads a ph pscript which servers several vertical cells. All looks very good in FF and IE but there is a small problem with FF,the extra space at the bottom for the iFrame inherits the <html> color. I tried to set the background-color of the iframe to white, i tried to set the background color of the php served to white, made a style only for the iframe,nothing helps. In IE all its ok and tbh it's very frustrating when you have 10px at the bottom of the iframe black. I could just adjust the size of the iFrame, but there is a chance that some of the cells served by the php to be left out.

    I appreciate all the help
     
    vexx, Nov 18, 2007 IP
  2. vexx

    vexx Well-Known Member

    Messages:
    204
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    123
    #2
    seems whatever I do, the space left in the iframe after the php is loaded,inherits the color of the <html> style background

    i'm loosing my mind here
     
    vexx, Nov 19, 2007 IP
  3. pylon

    pylon Peon

    Messages:
    88
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #3
    have you tried changeing the background of the file that the iframe is linking to?
     
    pylon, Nov 19, 2007 IP
  4. vexx

    vexx Well-Known Member

    Messages:
    204
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    123
    #4
    yes i did taht first thing..the php file has white background(in the body),the iframe has white background style defined but still the extra blank space after the php is loaded,inherits the <html> background
     
    vexx, Nov 19, 2007 IP
  5. pylon

    pylon Peon

    Messages:
    88
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    maybe resizing the iframe might do something it could be another element interfering.
     
    pylon, Nov 19, 2007 IP
  6. vexx

    vexx Well-Known Member

    Messages:
    204
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    123
    #6
    well that's the problem, i don't want to resize it too much(smaller) because the php won't load fully and it's a dynamic content php, I can't know for sure what height to give to the iframe.
     
    vexx, Nov 20, 2007 IP
  7. vexx

    vexx Well-Known Member

    Messages:
    204
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    123
    #7
    some update...i found out that if I add a !doctype to the php file loaded in the iframe, IE acts the same..so,by removing any !doctype, IE acts fine while FF still shows that shitty iframe end background color..i tried all the !doctypes but nothing changed...why is IE seeing this like it supposed 2?
     
    vexx, Nov 22, 2007 IP