Quick iFrame Q

  • Started
  • Last post
  • 2 Responses
  • Dancer

    I have an image in a div in an iframe and when I click through to the next html page the iframe has to change size.

    Do you HAVE to specify the width and height of an iframe or can I let the image/div inside it determine the size.

    As I cannot get it to work at the moment and it reduces to a default size.

    Any help would be greatful.
    Thanks

  • heavyt0

    you have to specify the size.
    I cant understand why you need a div inside of an i frame though.
    can you explain and maybe we can come up with a better solution?

    TR1

  • Dancer0

    Bump but i imagine Heavyt is in bed?

    I have a div that has a white BG and a 10px margin on the image so the div gives it a 10px border. The main page has a BG image and the iframe should be transparent (only works with IE 5.5+) so ou can still see the image. just thought that if the iframe is defined by its content this would be a way round preventing a white BG.

    Am I making sense anymore?