Background colour for iframe

Discussion in 'HTML & Website Design' started by continuum, Sep 22, 2007.

  1. #1
    Found the answer. Please delete.
     
    continuum, Sep 22, 2007 IP
  2. MetaCipher

    MetaCipher Peon

    Messages:
    55
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Why don't you post it so if someone has the same problem they can find the answer... :p
     
    MetaCipher, Sep 26, 2007 IP
  3. continuum

    continuum Well-Known Member

    Messages:
    571
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    110
    #3
    Good point.

    My problem was that I had a grey background source page for my iframe - my home page is also grey. As I did not want it to scroll on the first page, but I did want it to scroll on the second page (a page of results), I made the source page smaller than the iframe. This fixed the scrolling problem, but I then had two white lines on either side of my frame which looked bad.

    solution: in my source page, just after the </head> I put <body bgcolor="#C0C0C0" text="#000000">, (C0C0C0 was the grey colour I was after) and this fixed the problem.

    Thanks MetaCipher for pointing this out. It took me hours to find a solution. Hope this helps someone in the future.
     
    continuum, Sep 26, 2007 IP