tbh ive changed the coding alittle bit, and it does work now, i have a div which contains the background that will contract and expand, and the iframe is laid ontop of it.
The problem wasnt really getting an Iframe inside the div, but the problem was to get a background with it that expanded and contracted when the rest of the website does
The coding i used is this:
HTML:
Code:
<div id="menu">
<div id="menu_bg"><img src="images/menu_bg.jpg" class="stretchh"/>
<div id="menu_frame">
<iframe name="menu" src="menu.html" frameborder="0" width="100%" height="100%" allowtransparency="true" scrolling="auto"></iframe>
</div>
</div>
</div>
<div id="content">
<div id="content_bg"><img src="images/content_bg.jpg" class="stretch" />
<div id="content_frame">
<iframe name="content" src="aboutus.html" frameborder="0" width="100%" height="100%" allowtransparency="true" scrolling="auto"></iframe>
</div>
</div>
</div>
CSS:
Code:
#menu {
width: 15%;
height:60%;
min-height:60%;
float: left;
margin-left:6%;
margin-top:2%;
height: auto;
}
#menu_bg {
height:100%;
width:100%;
position:relative;
left:0px;
top:0px;
z-index:-700;
}
#menu_frame {
height:100%;
width:100%;
position:absolute;
left:0px;
top:0px;
z-index:100;
}
.stretchh {
width:95%;
height:100%;
}
#content {
width:70%;
height:60%;
min-height:60%;
float: left;
margin-top:2%;
margin-left:2%;
}
#content_bg {
width:100%;
height:100%;
position:relative;
left:0px;
top:0px;
z-index:-700;
}
#content_frame {
width:100%;
height:100%;
position:absolute;
left:0px;
top:0px;
z-index:100;
}
.stretch {
width:100%;
height:100%;
}
Bookmarks