Jump to content

Recommended Posts

Hello,

 

I wish to display the contents of a diffrent website page (https://www2.thedomin.com), within a 'main' site http://www.thedomain.com).  I have tried doing this thought an iframe with the following:

 

(include a header)
<iframe scr="https://www2.thedomain.com/blaa" width="100%"></iframe>
(include a footer)

 

This works but the height of the iframe is always to small.  I fould like this to change to fitt its contents.  Can anyone tell me how to do this?  Perhaps an iframe is the wrong way?

 

Many Thanks!

Link to comment
https://forums.phpfreaks.com/topic/44223-displaying-pages-inside-others/
Share on other sites

you can set the both height and width of an iframe!

 

(include a header)
<iframe scr="https://www2.thedomain.com/blaa" width="100%" height="350"></iframe>
(include a footer)

 

I think I am correct in stating that the frame width will be relative to YOUR document not the width of the document you are loading... so if "100%" is not wide enough I would suggest either just opening the site in a new window or using a fixed pixel value for your iframe.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.