website promotion banner
Free Stock Images
  • Create A Free Account
  • Download High-Res Stock Images For Free
  • +5 Million Images
Your Ad Here
HTML and CSS  Home HTML and CSS Tutorials Transparent IFrames
rss

Transparent IFrames

Author: Lindsay Coome More by this author


If you don't already have a bsic knowledge of IFrames, click here. OK, let's get started! To make the backgrounds on your IFrames transparent, copy the code below.

<div style="position: absolute; top:300; left:400"> <IFRAME src="PAGEURL.htm" name="frame" width="200" height="200" frameborder="0" allowtransparency="true"></iframe></div>

Edit all of the numbers. The width and height determine how big your IFrame will be. The top and left numbers determine where the IFrame will be placed on your site. The larger the number for the top position is, the further down it will go. The larger the left number is, the further right it will go. Keep altering these numbers until you are happy with them. You also must change PAGEURL.htm to the url of your IFrame. Now copy the code below, and paste it into the <head>  tag of the page you are linking to (in other words the page that you replaced PAGEURL.htm with).

<style> <!-- BODY { background-color: transparent; } --> </style>

Transparent iframe example
Transpafent IFrame example


Rate this Material: Bad 1 2 3 4 5 Excellent
print this page tell a friend subscribe to newsletter subscribe to rss

Add comments to "Transparent IFrames"