By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,628 Members | 1,401 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,628 IT Pros & Developers. It's quick & easy.

<DIV> like behavior for <IFRAME>

P: n/a
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.
Jul 20 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
O.J. Tibi wrote:
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.
You would have to give it a default size, the use JavaScript to resize it if
you want any degree of cross-browser support.
3) the <iframe> should not have any border, or a small thin border if
necessary.


CSS border property

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

http://www.allmyfaqs.com/faq.pl?Incl...ile_in_another
--
David Dorward <http://blog.dorward.me.uk/> <http://dorward.me.uk/>
Home is where the ~/.bashrc is
Jul 20 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.