HTML Coding Help? iFrame Help?

  • Thread starter Thread starter est1984
  • Start date Start date
E

est1984

Guest
Hi there, I am trying to build a website.

www.d32i.com

I have built it using tables which is 3x3 and I have inserted pictures all the way around except for the middle and the bottom middle. I have chose to do this as I want to open another website or another link in the middle cell of the table and the bottom cell of the table. I use the cell just for design purposes. but I want the height of the website or the link which i used in the center cell (mergeed with the bottom cell) to choose its own automatic height as i have fixed the width to a particular size that i require. to help me do this i shall show u the code that I have used, u can veiw the full source yourself if you require.

<td><iframe src="http://www.d32i.com/uan" height="500" width="650"> </iframe> </td>

now what i really want to do is
<td><iframe src="http://www.d32i.com/uan" height="automatic" width="650"> </iframe> </td>

i am currently use it as

<td><iframe src="http://www.d32i.com/uan" height="99%" width="650"> </iframe></td>

which i think should work correctly but due to the fact that i have a table and that has a fixed number it is never going to go before the height of the cell combined with the merged cell

any ideas?
 
Hey Buddy,

Unfortunately, iFrames require you to set your own height, and width requirements.

Reasons:

iFrame is similar to a new window that is opened or a new tab for an example. The <td> or even the <iframe> has no idea as to how hight or how wide the page is. For what you are doing i would recommend you use PHP to do an include. and insert this data into a div

example:

<div class="content" style="width: 650px; height: auto;">

#include the page info here# or use the php include function

</div>


You can also make these divs float, and make it posistioned anyway you wish.

Best of luck, any question shoot me an email

j.fitzpatrick(a)ymail.com
 
Back
Top