Welcome to WebmasterWorld Guest from 54.196.2.131

Forum Moderators: incrediBILL

Message Too Old, No Replies

How to make variable height iFrame?

iframe html css ajax

     
6:51 pm on Apr 23, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:July 11, 2008
posts: 88
votes: 0


How can I create multiple IFRAMES (or frames) on a page that have variable height?

To illustarte the point think of it that I want a page that will have my menus on top, then a page (of indeterminate length) from abc.com and then another page from def.com, and so on...

Please help! Thanks!
--

11:29 am on Apr 30, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:Jan 15, 2008
posts:198
votes: 0


Give each frame a class (or id) and style them individually according to your needs.
Although using frames is a bad idea actually..
5:15 pm on Apr 30, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member tedster is a WebmasterWorld Top Contributor of All Time 10+ Year Member

joined:May 26, 2000
posts:37301
votes: 0


I'd say there can be good uses for an iframe - but do appreciate that the content in an iframe is not indexed as part of your url. So the page you described has no content of its own - just a menu area.
8:17 pm on Apr 30, 2009 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month

joined:Feb 12, 2006
posts:2648
votes: 94


if you want the iframe to resize itself to fit the content from another site, then javascript will do the job. plenty of scripts on the web if you google them
8:29 pm on Apr 30, 2009 (gmt 0)

Junior Member

5+ Year Member

joined:July 11, 2008
posts:88
votes: 0


Found 'em londrum, thanks! ::)