Wednesday, May 16, 2012

Adding transparent frame

To add a transparent frame to an html page, to have the same background of the page

Set the background of the frame body to transparent

<body style="background-color:transparent">

in the page, add the following to the iframe tag

allowtransparency="true"

<iframe src="../common/Options.htm" width="100%" frameborder="0"
scrolling="no"  marginwidth="1"
marginheight="1" height="100%" name="CardOptions" allowtransparency="true"></iframe>

No comments:

Post a Comment