Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. IFrame worries.

IFrame worries.

Scheduled Pinned Locked Moved Web Development
designhelp
3 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alsvha
    wrote on last edited by
    #1

    Greetings all. For various reasons I'm having to use an IFrame to integrate content into somebody elses CMS system and thusly design/code. This is causing me problems, because I can not get the IFrame to expand dynamically with the content it loads. This either gives double scrollbars or much extra unneeded spaces. My IFrame is located within a relative positioned DIV which has position relative on it. The IFrame then loads my page(s) and displays them. But I just can't get the IFrame to expand..... *grrr* Please help me before I go postal on the client :) --------------------------- 127.0.0.1 - Sweet 127.0.0.1

    W 1 Reply Last reply
    0
    • A Alsvha

      Greetings all. For various reasons I'm having to use an IFrame to integrate content into somebody elses CMS system and thusly design/code. This is causing me problems, because I can not get the IFrame to expand dynamically with the content it loads. This either gives double scrollbars or much extra unneeded spaces. My IFrame is located within a relative positioned DIV which has position relative on it. The IFrame then loads my page(s) and displays them. But I just can't get the IFrame to expand..... *grrr* Please help me before I go postal on the client :) --------------------------- 127.0.0.1 - Sweet 127.0.0.1

      W Offline
      W Offline
      wduros1
      wrote on last edited by
      #2

      Sorry if i sound like an idiot - it's been years since I worked with an iFrame. As i recall the width and height were passed on the creation of the iFrame. Do you want the iFrame to: 1) Determine the size of the container that is holding it. 2) Use the size discovered in step 1 to resize itself to expand to fill it's container. -ward

      A 1 Reply Last reply
      0
      • W wduros1

        Sorry if i sound like an idiot - it's been years since I worked with an iFrame. As i recall the width and height were passed on the creation of the iFrame. Do you want the iFrame to: 1) Determine the size of the container that is holding it. 2) Use the size discovered in step 1 to resize itself to expand to fill it's container. -ward

        A Offline
        A Offline
        Alsvha
        wrote on last edited by
        #3

        I want the IFrame to expand with the content it shows, that is the page which I pass as the source. That size I can't know, which is why I wondered if there was any possiblity of making the IFrame "relative" in size. --------------------------- 127.0.0.1 - Sweet 127.0.0.1

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups