1

I have created an HTML page (e.g.cars) which is to be loaded in another HTML (main) page using <iframe>.

I have succeeded in doing so but each the time the content changes in the cars HTML, the iframe size remains the same which really outlooks the webpage.

I have pictures on Imgur for you guys to understand (zoom 25% for you to see the page wholly).

Chad Nouis
  • 6,316
  • 1
  • 25
  • 27
ThomasWeb
  • 25
  • 5

1 Answers1

0

Similar answer can be found here: Make iframe automatically adjust height according to the contents without using scrollbar?

Check this also, https://github.com/davidjbradshaw/iframe-resizer, download the plugin and then go to example folder.Run index.html, and see/change the content in frame.content. It is working perfectly.

Community
  • 1
  • 1
Saswata Sundar
  • 516
  • 1
  • 4
  • 11
  • Add these at bottom of your page: (add this file to your js folder). Along with the other script (js library file and other piece of code) check the html. For iframe page please check the html by editing the page... – Saswata Sundar Sep 04 '15 at 15:45