If I well understood your question to adapt the size of the iframe
depending of the size of it's contents you should use javascript this way.
1-set the <iframe width="100" height"100" you can try to use auto instead
of 100 but I don't know if it works on Opera
2-put all the content on the iframe file inside a div called "ibox" with a
height of
100%.
3-Don't forget to put no scroll for the iframe.
4-with javacript ask for the offsetHeight of the "ibox"
isize =frames[0].document.getElementById("ibox").offsetHeight
document.getElementById(name of the iframe).height=isize+100
the 100 it's the size of the iframe.
Call the script on onload this way the size of the iframe will follow the
size of it's
content.
Berry
> Do you know a good way to get iframe inside messy table-based layout to
>stretch to 100% available height?
> In IE it is as simple as <iframe height=100%>, but Opera is very picky
>about heights :(
>
> I'm trying to make hotfix for someone else's site, so mess, tables and
>iframe has to stay :/
>
> I know two methods using javascript:
> - compute and set fixed height
> - find *all* parent (parents of parents, etc.) elements of iframe and
>give them height: 100%
>
> I rememver I've read somewhere that Opera sticks to odd CSS rule: element
>can have height in % only if parent element has height set, but I can't
>find in in W3C TR.
>
>
>--
>regards, Kornel Lesi�ski
>
>******************************************************
>The discussion list for http://webstandardsgroup.org/
>
> See http://webstandardsgroup.org/mail/guidelines.cfm
> for some hints on posting to the list & getting help
>******************************************************
******************************************************
The discussion list for http://webstandardsgroup.org/
See http://webstandardsgroup.org/mail/guidelines.cfm
for some hints on posting to the list & getting help
******************************************************