Click to See Complete Forum and Search --> : Webpage inside another webpage
edinc90
06-01-2005, 08:18 PM
I'm looking to embed a webpage into my webpage in something like a textarea with a scrollbar. I know I can't do this with a textarea because the textarea doesn't support any html tags at all. Would I have to do this with a frame? And is there a way to put the frame in the center of the page? I have Dreamweaver MX by the way.
Bluetagpizza
06-01-2005, 08:41 PM
Use an Iframe. http://www.w3schools.com/tags/tag_iframe.asp.
To make the Iframe appear centered use a DIV with the "text-align:center" style like so:
<div style="text-align:center">
<iframe src="index.html">Your browser does not support Iframes!</iframe>
<div>
Hope that helps :)
edinc90
06-01-2005, 09:02 PM
Wow, thanks for the fast response. It works like a charm. I can't upload it yet b/c my FTP is down or something. When it's up again I'll link to it. Thanks again!
CarolW
06-01-2005, 09:27 PM
I'm looking to embed a webpage into my webpage in something like a textarea with a scrollbar. I know I can't do this with a textarea because the textarea doesn't support any html tags at all. Would I have to do this with a frame? And is there a way to put the frame in the center of the page? I have Dreamweaver MX by the way.
One of my early "Hilarious error" pages had a number of boxes in it, in whch I had scrollbars. I had trouble with the CSS that produced it. I was using HTML 4.01 transitional at the time. The page looked all right in IE, and if I remember right, in Opera also - I was using Opera at the time while designing my pages. But as soon as I tried using a Gecko-engine browser - Netscape 7.2 or Firefox, I had trouble, haha!
I called it collapse.htm and posted it on my site for some time, because I thought it was so funny!
I'd suggest you do this: hop over to the CSS forum and ask there, how to make boxes with scroll bars in them. I think if coded well, they should work fine,and they would help keep your site really clean, good-looking, fast-loading, and so forth!
You need to write your HTML code first, to get the structure right.Then you control the layout using CSS. People here are astoundingly helpful, so have fun!
Wed, 01 Jun 2005 19:25:35