Re: newbie: css position of IFRAME



Jeff wrote:

> Hey
>
> I'm testing this on IE, 6.0 (but I want my code to work on all modern
> browsers: Opera, FireFox, IE, Netscape Navigator)
>
> I want the iframe (see code below) to fill the entire space the DIV it is
> placed within
> <div id="content">
> <iframe id="frameid">
> </iframe>
> </div>
>
> This is the CSS data I use to configure the layout of the html code:
> #frameid {
> left:0px;
> right:0px;
> width:100%;
> border:2px solid #00C;
> background-color:#C0C0C0;
> }
>
> #content {
> margin:0 190px 0;
> left:190px;
> border:2px solid #00C;
> background-color:#C0C0C0;
> }
>
> The problem is that the width of the IFRAME is larger than the DIV it's
> placed within, I thought if I specified the IFRAME width to be 100% it's
> then set to 100% of its parent container (here the DIV)??
>
> Do you have any tips about what CSS/HTML setting I must use so that size of
> the IFRAME is the SIZE of the DIV, then please send them to me...
>
> Best Regards!
>
> Jeff

Maybe, if you cant find a solution for what you are doing, you may try a
different approach.

What do you want to achieve from this? You want to contents of a page
within your parent page? You want to be able to reuse that content? Maybe
you can get this content into your pages by including it with some server
side language tools (PHP, ASP, Server side inlcudes, etc).

Maybe?


--
movies in WA : http://www.grandcinemas.com.au
beef jerky - good to chew : http://www.choicebeefjerky.com.au
eat beef jerky
.



Relevant Pages

  • Re: dynamic menu
    ... The problem occurs because of the z-index behaviour of HTML elements. ... "So what that means is an IFrame can block out the select box, ... DIV at the same time. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Editable IFRAME
    ... I have an editable Iframe control that I am using to allow users to ... two ways to accomplish this. ... when the button is clicked it moves the DIV based on how high the DIV ... location is set in the cells valign property. ...
    (comp.lang.javascript)
  • Re: IE6 Bug Workaround ?????
    ... Using an iframe complicates matters, because I wanted the functionality ... use a "floating" iframe instead of a div. ... this should obscure the DDL, but it appears on the surface. ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: [PHP] Re: posting variables to parent frame
    ... So clever it doesn't show in your html source code. ... Looks more like you are using DIV tags, with simple POST values, just like I'd have done it. ... I use iframe to deliver the sound without a refresh via ajax. ... OBJECT is intended to replace the more specific IMG and APPLET elements, as well as the proprietary EMBED and BGSOUND elements, though a lack of browser support and severe bugs in supporting browsers make the other elements a better choice in many cases." ...
    (php.general)
  • Re: why does updating a div inside of an updatepanel still refreshes entire page?!?!!
    ... GroupReader said: ... Make sure children as triggers is false. ... Are you using an IFrame? ... What stinks is that when i overlay a div on the iframe, ...
    (microsoft.public.dotnet.framework.aspnet)