View Full Version : Iframe Problem


Soul And Mind
01-31-2003, 02:05 PM
Hello everyone i'm kinda new to html etc! but i'm using dreamweaver to speed up my things and for the rest i use just html notepad. But now i'm in need of some help on this:

I got an iframe, and i got a picture as bg, but the picture moves with it if i scroll the text or pics. I would like to have it like that the bg stays there and the text moves up or down.

i used:
<body bgproperties="fixed">
so i have a line like this:

<iframe name="iframe" iframe src="home.htm" WIDTH=413 HEIGHT=362 ALT="" <body bgproperties="fixed">

is it wrong? please tell me what to do!

pb&j
01-31-2003, 02:21 PM
So you are trying to have the bg stay in place for the main part of the page or inside the iframe or both?

Wherever you want it, yes, just put the BGPROPERTIES="FIXED" into the starting BODY tag of the page you desire. That is... in your main page and/or in the page that is being displayed in the iframe.

Be sure to note as well : this is an IE trick only, there is no Netscape compatable ways to do this.

Cheers.

Soul And Mind
01-31-2003, 02:23 PM
i know it's an ie trick, but where should i put the BGPROPERTIES="FIXED"

cut2deep
01-31-2003, 04:23 PM
if you want the picture as background inside your iframe, you should put it in the body tag of the page that you want to load in the iframe..

pb&j
01-31-2003, 05:23 PM
Originally posted by pb&j
just put the BGPROPERTIES="FIXED" into the starting BODY tag of the page you desire.

If you want to affect the bg on the main page, put it into the starting BODY tag of that page coding.

If you want to affect the bg on the page showing inside the iframe, put it into the opening BODY tag of the page coding for the page being displayed.