Mudsaf Posted April 19, 2014 Share Posted April 19, 2014 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 More sharing options...
Ingolme Posted April 20, 2014 Share Posted April 20, 2014 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 More sharing options...
Mudsaf Posted April 21, 2014 Author Share Posted April 21, 2014 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now