+ Reply to Thread
Results 1 to 3 of 3

Thread: Iframe

  1. #1
    galaxyAbstractor's Avatar
    galaxyAbstractor is offline Community Advocate galaxyAbstractor is on a distinguished road
    Join Date
    Oct 2007
    Location
    Land of Null and Insanity
    Posts
    5,495

    Iframe

    the iframe at http://ufo.jagf.net/forum.php don't want to change height whatever I do.

    I use this:

    HTML Code:
    <iframe src ="/forum/index.php" width="100%" height="100%" frameborder="0"></iframe>
    <center>Can't see the forums? <a href="forum/index.php">Click here!</a>
    What should I do?

  2. #2
    Hazirak's Avatar
    Hazirak is offline x10 Sophmore Hazirak is an unknown quantity at this point
    Join Date
    Dec 2007
    Location
    Georgia
    Posts
    197

    Re: Iframe

    Setting heights to 100% is a bit of a tricky business. The issue is that while common sense tells us that setting something to 100% would make it take up the entire viewport... that's not the case. What happens is it ends up taking up 100% of the body tag's height, which by default takes up 100% of the html tag's height.

    The html tag doesn't take up 100% of the user's viewport by default - it just becomes however tall it needs to be to hold the website's content. You would have to manually set it's height to 100% to get it to take the entire viewport, but then there's another issue - what if you need more than 100% of the viewport (that's when you usually get a scrollbar)?
    Last edited by Hazirak; 02-19-2008 at 03:46 PM.

  3. #3
    diabolo's Avatar
    diabolo is offline Community Advocate diabolo is on a distinguished road
    Join Date
    Nov 2007
    Location
    Jersey Shore
    Posts
    1,683

    Re: Iframe

    I had a similar problem with this, that my bg image won't fit the the bottom right corner, I have found a fix; just like what Hazirak said,
    it can be simply done in CSS, by:

    html {height: 100%;}

+ Reply to Thread

Similar Threads

  1. Iframe issue
    By gabrialm in forum Free Hosting
    Replies: 0
    Last Post: 12-16-2007, 05:39 PM
  2. iframe
    By Matthews255 in forum Scripts & 3rd Party Apps
    Replies: 9
    Last Post: 06-02-2005, 07:48 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers