Forum Moderators: open

Message Too Old, No Replies

what am i doing wrong? (iframe)

         

re1ap5e

2:15 am on Oct 6, 2006 (gmt 0)

10+ Year Member



Whenever i resize the browser the iframe doesn;t resize with it.

<html>
<head>
<title>Title Title Title</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF">
<table style="height:100%; width:100%;" border="0" cellpadding="0" cellspacing="0">
<td align="center">
<map>
<img src="images/ca layout.gif" style="width:620px; height:820px;" usemap="#map1" title="example.com" border="0">
</td>
</table>
<div style="position:absolute; width:488px; height:651x; z-index: 1; left:434px; top:147px;">
<iframe style="width:488px; height:651px;" frameborder="0" name="content" allowtransparency="true" src="news.html"></iframe>
</div>
<map name="map1">
<area shape="rect" coords="63,143,20,120" href="/" title="news">
<area shape="rect" coords="28,180,93,153" href="/smf" title="forums">
<area shape="rect" coords="21,212,52,190" href="/dkp.html" title="dkp">
</body>
</html>

Any help would be appreciated.

[edited by: tedster at 3:18 am (utc) on Oct. 6, 2006]
[edit reason] use example.com in code [/edit]

re1ap5e

2:29 am on Oct 6, 2006 (gmt 0)

10+ Year Member



Also i noticed that when I used allowtransparency="true"that when i attempt to scroll the iframe within IE it pauses scrolling between the fonts on the news page yet it doesn't happen with FF.

tedster

3:19 am on Oct 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Welcome to the forums, re1ap5e.

Looks like you gave the iframe a fixed dimension in your style attribute:

style="width:488px; height:651px;"

re1ap5e

3:43 am on Oct 6, 2006 (gmt 0)

10+ Year Member



THanks for the fast reply and thanks for the welcome.

If I change that it will move the frame from sitting directly over the layout image i have behind it.

Are there any commands to make it stay there but so that it also repositions are the browser resizes?

re1ap5e

3:45 am on Oct 6, 2006 (gmt 0)

10+ Year Member



It also controlls the size of the frame

penders

8:19 am on Oct 6, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Are there any commands to make it stay there but so that it also repositions are the browser resizes?

You already have

<div style="position:absolute;....
which should 'make it stay there'. You could try setting percentages for the width and height, to help it resize...
width:50%; height:80%;
(Although you might still need a fixed height.)