Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iframe background image

Status
Not open for further replies.

Keendev

Technical User
Jan 23, 2006
106
0
0
PH
hello ALL


I used iframe on a certain section inside of my main page.
My main page has a background image for the whole page.

need help here ...
the iframe need to have a look like in a transparent bg or no BAckGround at all so that the background image of my main page will appear in a fixed position even my iframe scrolls.

hope this is possible...

thanks.
 
hope this is possible...
It isn't. Or at least, not as you describe it.

The contents of the iframe - background images included - are a separate document to the one that contains the <iframe> element. You'll have to give the framed page a background which mimics the desired behaviour.

If you do some googling, you should find out how to stop the background image scrolling with the content. It's not something I've ever needed to do, so I can't tell you how to do it.

-- Chris Hunt
Webmaster & Tragedian
Extra Connections Ltd
 

hi, thank you for the advice.

My page is ok now.I made a bg img inside the page for iframe in fixed a position.
 
The other way of course is to use some server-side code and a div.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top