PDA

View Full Version : Iframe help needed



--ss--
10-11-2007, 08:36 PM
Well I want to know how to make an Iframe examdble in this layout I coded a while ago for kyle
http://www.shanes.pcriot.com/1.html Is the layout
I want the main content area to be expandble.

I put no height and width in for the body , the css I used for the content div is :

#content {
background-color: #FFFFFF;
position: absolute;
left: 145px;
top: 110px;
width: 80%;
border: 1px solid #000000;
padding: 2px;
}And the Iframe code i used is:

<iframe src="main.html" name="content" WIDTH="100%" HEIGHT="100%" frameborder=0></iframe>What am I doing wrong?

MrCraig
10-11-2007, 09:34 PM
erm.. i think u need to use the dynamicdrive iframe expanding script...

www.dynamicdrive.com

its on there somewhere

iTechnical
11-11-2007, 10:36 AM
Hmm, is there any boxes left/right of your iframe?

100% means stretch across the hole page.

iTechnical
11-11-2007, 10:36 AM
Hmm, is there any boxes left/right of your iframe?

100% means stretch across the whole page.

--ss--
11-11-2007, 01:13 PM
erm.. i think u need to use the dynamicdrive iframe expanding script...

www.dynamicdrive.com (http://www.dynamicdrive.com)

its on there somewhere

Link please :D


Hmm, is there any boxes left/right of your iframe?

100% means stretch across the hole page.
Yep theres a div on the left , but the iframe is placed inside a div so woulded the 100% mean 100% of the div?

iTechnical
11-11-2007, 01:18 PM
Link please :D


Yep theres a div on the left , but the iframe is placed inside a div so woulded the 100% mean 100% of the div?

No, 100% in css would be to stretch across the whole page
i.e


<style type="text/css>
body {
height: 100%;
width: 100%;
background-color: hexhere;

--ss--
11-11-2007, 01:33 PM
No, 100% in css would be to stretch across the whole page
i.e


<style type="text/css>
body {
height: 100%;
width: 100%;
background-color: hexhere;

ooo ok , How should i make it so the div width will change accordingly to peoples resolution? If I make it to fit a certain resolution perfectly there would either be a large empty space on the side or will make the page scroll
http://www.shanes.pcriot.com/style.css Is all the css I'm using

Leeroy
13-11-2007, 08:26 PM
http://www.dynamicdrive.com/dynamicindex17/indexb.html

Few iframe ones there
hope they help

--ss--
13-11-2007, 08:29 PM
http://www.dynamicdrive.com/dynamicindex17/indexb.html

Few iframe ones there
hope they help
What one do I need to solve my problem though? :eusa_whis

Want to hide these adverts? Register an account for free!