Insert fixed elements in editable iframe

Posted by swarnendude on Stack Overflow See other posts from Stack Overflow or by swarnendude
Published on 2010-05-05T08:11:19Z Indexed on 2010/05/05 8:18 UTC
Read the original article Hit count: 225

Filed under:
|
|

Hi,

I have an editable iframe and I want to insert two DIVs at the [b]top [/b]and [b]bottom [/b]part(as header/footer) of iframe body respectively. Now, the question is : how to insert a div [b]at the top of iframe body[/b] and fix it there? (Will insertFirst() work?)

Also, how to fix the footer div always [b]at the bottom of the iframe body[/b]? I tried make its position absolute and gave a margin top/bottom, but the problem comes when the body height of the iframe increases and footer DIV position does not change.

I want the same thing google docs does, i.e. fixing separate part for header/footer (though google docs page is not an iframe).

Any work around?

Regards, Swarnendu

© Stack Overflow or respective owner

Related posts about editable

Related posts about iframe