Results 1 to 2 of 2

Thread: Iframes or something like them?

  1. #1
    Join Date
    Mar 2008
    Posts
    1

    Iframes or something like them?

    The client uses a service that allows them to manage their catalog and front page etc. through a gui.

    Unfortunately, the page this service turns out is not so pretty.

    My solution so far is to strip down their page to it's barest info and pop that into a larger shell with an iframe.

    The problem with that is that the iframe height is static, so a height large enough for the longest pages leaves yards of space on others.

    I've tried javascripts meant to resize iframes, but those I've found only work when pages are hosted on the same server, which these cannot be. I also can't add script to any of the referenced pages, I can only affect them with .css files.

    Any ideas for a way to dynamically resize my iframes or another method that may work here?

  2. #2
    Join Date
    Feb 2006
    Location
    Salisbury UK
    Posts
    4,332
    You could try max-height for the iframe. It won't work in IE6 so IE6 will probably generate whatever height is needed if no other height is given.

    IE7, Firefox, Opera and Safari should extend the height flexibly to the maximum and then create a scrollbar. I haven't tested this.

    Edit: I found that max-height didn't work with an iframe.

    If you set the iframe height to suit the page with least height it will create a scrollbar for the longer pages. Is that unacceptable?
    Last edited by Wickham; 19 Mar 2008 at 03:06 AM.
    Code downloaded to my PC will be deleted in due course.
    WIN7; IE9, Firefox, Opera, Chrome and Safari for Windows; screen resolution usually 1366*768.
    Also IE6 on W98 with 800*600 and IE8 on Vista 1440*900.

Similar Threads

  1. scripting links to load content into multiple iframes
    By andrewsteinmetz in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 0
    Last Post: 10 Sep 2007, 01:44 PM
  2. scrollHeight/offsetHeight (Firefox/IE) Iframes
    By rs131 in forum Client & Server Side Scripting (PHP, ASP, JavaScript)
    Replies: 1
    Last Post: 06 Sep 2006, 09:44 PM
  3. page containing iframes
    By sj700 in forum Web Design, HTML Reference and CSS
    Replies: 1
    Last Post: 24 Nov 2005, 07:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •