Jump to content

Displaying pages inside others.


the_oliver

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.