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: Document loaded:how to detect?
    ... The whole idea is to load into the DIV different texts clicking on the corresponding button. ... Let alone script injection, actually the code, in a nutshell, is: ... -frdata = a reference to the frame 'container' of div and iframe ... The button that should start the process of loading the iframe and transferring the content to the div is: ...
    (comp.lang.javascript)
  • 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: SKMMenu and SSL
    ... > I ran into the same problem when coding the Ultra Menu ... In order to show a Div over a drop down ... >> the secure/unsecure error message. ... >> TIA - Jeff. ...
    (microsoft.public.dotnet.framework.aspnet)