Click to See Complete Forum and Search --> : embed new html


solomon_13000
02-20-2007, 02:10 AM
How do I actually embed a html page within a html page and have a vertical scrollbar in it. For example if you preview this website:

http://www.youtube.com/watch?v=zRVts7TFw-Y

You can see a section called related. Inside that section displays all the links.


Regards

Corey Bryant
02-20-2007, 07:12 AM
You can use a scrollable divide to make it scroll. Included content (http://www.htmlcodetutorial.com/help/ftopic3918.html) might help you out some if you are wanting to include files. Or you might check out dynamic content (http://www.dynamicdrive.com/dynamicindex17/index.html) for a few ideas.

trepidity
02-20-2007, 02:54 PM
Exactly. To do that you use IFRAMEs or scrollable divides. In other words, create a <div> tag with the overflow property in the style sheet set to auto. This causes it to appear as a regular div as long as the content does not exceed the bounding box size of the div. If it does exceed the bounds of the div then a scroll bar will automatically be drawn on the div and you can scroll through the contents of that div.
<div style="overflow:auto; height:200px;">some more stuff that exceeds the height of 200 pixels goes here</div>
that creates a div that no matter what is only 200 pixels tall, and everything that goes further than that you can scroll down the div to see.