<DIV> like behavior for <IFRAME>

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • O.J. Tibi

    <DIV> like behavior for <IFRAME>

    hi guys, i was wondering if you could help me with a small problem. i
    need to have an <iframe> to behave like a <div>, in such a manner
    that:

    1) the <iframe> should have its own display space, indicated by the
    "display: block;" style.
    2) the <iframe> should resize automatically to display its contents.
    3) the <iframe> should not have any border, or a small thin border if
    necessary.

    help in css or html is greatly appreciated. thanks!

    o.j.
  • David Dorward

    #2
    Re: &lt;DIV&gt; like behavior for &lt;IFRAME&g t;

    O.J. Tibi wrote:
    [color=blue]
    > 1) the <iframe> should have its own display space, indicated by the
    > "display: block;" style.
    > 2) the <iframe> should resize automatically to display its contents.[/color]

    You would have to give it a default size, the use JavaScript to resize it if
    you want any degree of cross-browser support.
    [color=blue]
    > 3) the <iframe> should not have any border, or a small thin border if
    > necessary.[/color]

    CSS border property

    You'd probably be better off ditching the frame in favour of some form of
    include.




    --
    David Dorward <http://blog.dorward.me .uk/> <http://dorward.me.uk/>
    Home is where the ~/.bashrc is

    Comment

    Working...