...

View Full Version : How do I change the height of an Iframe



blackwolf
11-17-2008, 05:47 PM
I have an Iframe at THIS PAGE (http://www.blackwolf-graphics.co.uk/support/copyofonlineform.html) 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.

VIPStephan
11-17-2008, 06:17 PM
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.

Millenia
11-17-2008, 07:49 PM
I have an Iframe at THIS PAGE (http://www.blackwolf-graphics.co.uk/support/copyofonlineform.html) 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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum