Click to See Complete Forum and Search --> : iframe alignment


hammy86
02-19-2003, 05:02 PM
I'm not sure how to properly align a screen using iframes. I'd like the first frame to be 75 pixels high and the second frame to be the rest of the screen. How do I let one frame size with the screen while keeping the other one static?

What I have looks as follows:
<iframe frameborder="no" height="75" width="780" src="top.htm" name="top" scrolling="AUTO" noresize>
</iframe>
<iframe frameborder="no" width="780" src="home.htm" name="main" scrolling="AUTO">
<iframe>

Any help would be greatly appreciated. Thanks

khalidali63
02-19-2003, 05:11 PM
you should be able to say

height="*" for the second iframe

cheers

Khalid

hammy86
02-19-2003, 05:55 PM
Wow, I must be tired! Thanks Khalid!

Stefan
02-20-2003, 03:52 AM
Hmm, havn't tested this, but does that work (especially crossbrowser)?

I know it works in a frameset with <frame>s, but with <iframe>s on a page it feels like it could get messy.

Using * as height for an <iframe> for sure is not allowed in the HTML specs...

hammy86
02-20-2003, 07:52 AM
I did try it and unfortunately it did not work. Any other suggestions?

Stefan
02-23-2003, 05:54 AM
Originally posted by hammy86
I did try it and unfortunately it did not work. Any other suggestions?

Is there a reason you cannot use a regular frame instead of only iframes?