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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Transparent Iframe.. 1

Status
Not open for further replies.

SamHale

MIS
Mar 7, 2004
71
GB

Hey Guys and Girls..

Is there anyway of having an iframe with a transparent bg ?

My main page has the url in dark grey on black as the bg, constantly repeated. So I want the iframe to have the same. I tried setting the iframe bg to the same image, but it overlaps too bad, cutting url's in half.

Hope you can understand, I can't explain things very well.
Thanks.

Sam.
 
There are two things you have to do. Within the declaration of the iframe include the following...

<iframe ..... allowtransparency="true" ...... >

Then within the CSS for the body tag of the iframe, have the following attribute:

background-color:transparent;

Hope this helps.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top