Jump to content

How to force HTML content in small box


Mudsaf
 Share

Recommended Posts

Hello, i'm wondering how to force full website in box like 600x600px. So basically i use file_get_contents method and i don't want to mess my website layout.

Link to comment
Share on other sites

Put it in a box with size restrictions. I'm not sure if this is really a PHP question.

<div style="width: 600px; height: 600px; overflow:auto;">    <?php echo contents; ?></div>

If this content has a full HTML document, put it in an <iframe>

<iframe src="file.php" width="600" height="600"></iframe>
Link to comment
Share on other sites

 

Put it in a box with size restrictions. I'm not sure if this is really a PHP question.

<div style="width: 600px; height: 600px; overflow:auto;">    <?php echo contents; ?></div>

If this content has a full HTML document, put it in an <iframe>

<iframe src="file.php" width="600" height="600"></iframe>

 

Thanks, the iframe works flawlessly.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...