iframes and tables


A

Alec

Am new to iframes so a quick question.

Visit www.cadcamlinks.com/iframetest.htm or code below.

<table border="0" cellpadding="0" cellspacing="0" width="800">
<tr>
<td width="50%" valign="middle">left side
<p><IFRAME frameBorder=0 height=100 width=60% marginHeight=0
marginWidth=1 scrolling=no
src="schottsysteme/links-schottsysteme-2007.htm" </IFRAME></p>
</td>

<td width="50%" valign="top">right side</td>
</tr>
</table>

I have a table with two columns containing text 'leftside' and
'rightside'. The iframe has been inserted in the left column after the
text. Why do I always then lose the right side column when I view the
webpage? Should iframes be used in tables?

Many thanks

Alec Thorne
 
Ad

Advertisements

S

Stefan B Rusynko

What do you Expect would happen?

You have table set to 800 px width
You have 2 cells set to 50% (that's 400 px each)
And in one of the 2 cells you are trying to load an Iframe with pages that are 797 px wide

No wonder only half the IFrame page (400px) is showing

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Am new to iframes so a quick question.
|
| Visit www.cadcamlinks.com/iframetest.htm or code below.
|
| <table border="0" cellpadding="0" cellspacing="0" width="800">
| <tr>
| <td width="50%" valign="middle">left side
| <p><IFRAME frameBorder=0 height=100 width=60% marginHeight=0
| marginWidth=1 scrolling=no
| src="schottsysteme/links-schottsysteme-2007.htm" </IFRAME></p>
| </td>
|
| <td width="50%" valign="top">right side</td>
| </tr>
| </table>
|
| I have a table with two columns containing text 'leftside' and
| 'rightside'. The iframe has been inserted in the left column after the
| text. Why do I always then lose the right side column when I view the
| webpage? Should iframes be used in tables?
|
| Many thanks
|
| Alec Thorne
|
 
A

Alec

Stefan

Thanks for the reply.

The iframe is set to 350 pixels within the 800 pixel table

<table border="0" cellpadding="0" cellspacing="0" width="800">
<tr>
<td width="50%" valign="middle">left side
<p><IFRAME frameBorder=0 height=100 width=350 marginHeight=0
marginWidth=1 scrolling=no
src="schottsysteme/links-schottsysteme-2007.htm" </IFRAME></p>
</td>

<td width="50%" valign="top">right side</td>
</tr>
</table>

The page and table it loads is only 300 pixels wide

<table border="0" cellpadding="0" cellspacing="0" width="300">
<tr>
<td>
<p style="margin-left: 10"><font size="3" face="Arial">Text1</
font></td>
</tr>
<tr>
<td>
<p style="margin-left: 10"><font size="3" face="Arial">Text2</
font></td>
</tr>
</table>

I still have the same problem with the right hand side of the table
not showing. Where is the page it loads defined as being 797 pixels
wide? Am I missing something (which is highly likely)????

Thanks

Alec
 
S

Stefan B Rusynko

It doesn't matter
- you page content in links-schottsysteme-2007.htm is locked at 797

--

_____________________________________________
SBR @ ENJOY (-: [ Microsoft MVP - FrontPage ]
"Warning - Using the F1 Key will not break anything!" (-;
_____________________________________________


| Stefan
|
| Thanks for the reply.
|
| The iframe is set to 350 pixels within the 800 pixel table
|
| <table border="0" cellpadding="0" cellspacing="0" width="800">
| <tr>
| <td width="50%" valign="middle">left side
| <p><IFRAME frameBorder=0 height=100 width=350 marginHeight=0
| marginWidth=1 scrolling=no
| src="schottsysteme/links-schottsysteme-2007.htm" </IFRAME></p>
| </td>
|
| <td width="50%" valign="top">right side</td>
| </tr>
| </table>
|
| The page and table it loads is only 300 pixels wide
|
| <table border="0" cellpadding="0" cellspacing="0" width="300">
| <tr>
| <td>
| <p style="margin-left: 10"><font size="3" face="Arial">Text1</
| font></td>
| </tr>
| <tr>
| <td>
| <p style="margin-left: 10"><font size="3" face="Arial">Text2</
| font></td>
| </tr>
| </table>
|
| I still have the same problem with the right hand side of the table
| not showing. Where is the page it loads defined as being 797 pixels
| wide? Am I missing something (which is highly likely)????
|
| Thanks
|
| Alec
|
|
 
A

Alec

Stefan

Thanks for the help. I suppose there is no way around this?

All I need is for several different pages (news articles) to include
at the bottom the content contained in another page (basically a
common list of news links). I am trying to keep away from a normal
frame, and have just been introduced to iframes. I know I could use
php, but I want to keep this as pure html.

Any ideas would be appreciated.

Many thanks

Alec
 
Ad

Advertisements

D

David Berry

Why not just use include pages then? You would out the news items in their
own page and then include them on each page you want them to appear on.
 
Ad

Advertisements


Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top