How do we join multiple html pages with iframe ? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 3

How do we join multiple html pages with iframe ?

Suppose you have 3 html pages ( a.html, b.html, c.html). You want to join these 3 pages in a single page (index.html). But, when you use 3 iframea it appears as 3 small boxes( with respective pages inside ). How do we change its appearance to look like a single page (i.e. each iframe with the size of their respective html page , and without a separate scrollbar for each iframe ). Guys , please help me to do this.

22nd May 2018, 7:10 AM
Shimin Mathew
Shimin Mathew - avatar
2 Answers
+ 2
the <iframe> tag has width and height properties so you could adjust the size.The only way to remove the scrollbar from the iframe is to ensure the iframe is larger than its contents.if you dont use iframe,the only solution i can think of is copying the other html files directly into index.html
22nd May 2018, 7:52 AM
᠌᠌Brains[Abidemi]
᠌᠌Brains[Abidemi] - avatar
+ 2
Try using bootstrap so you could better arrange the iframes
22nd May 2018, 1:25 PM
Arinze Obi
Arinze Obi - avatar