Click to See Complete Forum and Search --> : opening content in a table


metallibanger
10-22-2003, 12:01 AM
Ok, I have a table all set up with one of the boxes set up to have a scroll bar when content passes it's boundries. That's working great, it's popping up the scroll bar when the content warrants it, but here's my question... how can I open a seperate webpage (in this case a guestbook) in that table?

So I want to be able to put just the web address of this guestbook in the table, and have it open it in that location... hopefully I explained this well enough.

Andy Oliphant
The Thirteenth Hour

DaveSW
10-22-2003, 02:22 AM
OK to open another page in a table cell you need to replace your css

<td style="overflow:auto;"></td>

or whichever way you've done it, with

<td><iframe src="guestbook.htm name="iframe01"><a href="guestbook.htm">Your browser does not support inline frames. Please click here to open the guestbook.</a></iframe></td>

You can specify the iframe size using style="width:100px; height;100px;" inside the iframe tag.

The iframe then opens a spearate page and displays it in the cell. It will bring it's own scrollbars so you don't need yours.

The hyperlink in between the iframe tags is to enable people with older browsers which may not support this method to view the content.

DaveSW
10-22-2003, 02:25 AM
Oh yeah I guess I'd better say this before everyone else jumps on you and says it: You shouldn't use tables for layout. You should use css.

metallibanger
10-22-2003, 01:14 PM
Awesome, works perfectly, thank you. Now hopefully the guestbook program I'm using allows me to set the width (default is a bit too wide) and the scroll bar color. Anyway, thanks again the site's looking great.

Andy Oliphant
The Thirteenth Hour