Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Oct 2008
    Posts
    61
    Thanks
    7
    Thanked 0 Times in 0 Posts

    How do I change the height of an Iframe

    I have an Iframe at THIS PAGE but I want the height to be about 4 times higher than what it is. What is wrong with the code? PS, I'm a novice at coding.

  • #2
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,471
    Thanks
    6
    Thanked 980 Times in 953 Posts
    You tell your iframe to be 100% high but you don’t tell it 100% of what. Elements usually collapse in height by default (i. e. their implied height is zero) so you’d need to specify a specific height to the parent element of the iframe. And as a hint: You can’t assign it a 100% height either (or to express it more accureately: a relative height won’t have any effect either) because again, the parent of that element has no specific height.

    You’d need to start with the outermost element which is <html> but that wouldn’t be feasible. The simplest way would be to just set a fixed height, not a relative one.

  • #3
    Regular Coder
    Join Date
    May 2008
    Location
    Lost in Localhost...
    Posts
    702
    Thanks
    3
    Thanked 43 Times in 42 Posts
    Quote Originally Posted by blackwolf View Post
    I have an Iframe at THIS PAGE but I want the height to be about 4 times higher than what it is. What is wrong with the code? PS, I'm a novice at coding.
    Your link is broken


  •  

    Posting Permissions

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