Variable IFrame Size

G

Guest

Is there anyway to setup an inline frame so it will change size (height
specifically) depending on the size of the page it opens?

Here's my situation: I have a standard website frame setup with a header, a
sidebar for navigation and then a main section. I need the same disclaimers,
warnings and contact information displayed at the bottom of each page, so
within the main section, I put an inline frame to display the changing
content and the disclaimers, etc. at the bottom. But, I don't want my
visitors to have to use two sets of scrollbars to navigate the page. I'd
like the inline frame to change size depending on the page that's opened in
it.

If there's another solution that doesn't use inline frames, I'm okay with
that, too. I just don't want to have to update 20 pages everytime the
contact information has to be updated.

Thanks...
 
G

Guest

Set the Iframe width to 100%

Jim Buyens
Microsoft MVP
http://www.interlacken.com
Author of:
*-----------------------------­-----------------------
|\----------------------------­-----------------------
|| Microsoft Windows SharePoint Services Inside Out
|| Microsoft Office FrontPage 2003 Inside Out
||----------------------------­-----------------------
|| Web Database Development Step by Step .NET Edition
|| Microsoft FrontPage Version 2002 Inside Out
|| Faster Smarter Beginning Programming
|| (All from Microsoft Press)
|/----------------------------­-----------------------
*-----------------------------­-----------------------
 
G

Guest

That doesn't work... it just changes the size of the frame to 100% of
whatever the initial page is. When I change pages within it, it stays the
same size as the initial page wanted it to be. I still get 2 scrollbars on
the right hand side.
 
T

Thomas A. Rowe

You would have to design you pages that load in the IFrame to always be the same size. An IFrame is
part of page it is inserted into, so there is not way that you could adjust it's size based on the
content being loaded within it.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WebMaster Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
If you feel your current issue is a results of installing
a Service Pack or security update, please contact
Microsoft Product Support Services:
http://support.microsoft.com
If the problem can be shown to have been caused by a
security update, then there is usually no charge for the call.
==============================================
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top