View Full Version : Adjust iframe to take all remaining space
Diarmuid
08-29-2006, 05:41 PM
Hiya,
I was wondering does anyone know how I can set my Iframe to take all remaining space in the window, as I want to have a fixed size iframe at the top, to hold my logo, which is a fixed size, and then I want the second iframe to hold the rest of the content, and be the size of the remaining space in the window.
If it helps, I can supply the HTML code that I have been working with.
Thanks
Diarmuid
Basil
08-29-2006, 05:45 PM
Supply it.
dvessel
08-29-2006, 05:52 PM
IFRAME or inline frame is not suited for what you describe. Regular frames with a parent frame set can do this easily. Generally not recommended but you decide.
Diarmuid
08-29-2006, 05:56 PM
Hiya,
<html>
<head>
<title>Student Magazines Media Centre</title>
</head>
<IFRAME name="frame1" SRC="picture.htm" WIDTH="100%" HEIGHT="175" frameborder="0">
</IFRAME>
<iframe name="frame2" src="index2.htm" Width="100%" height="" frameborder="0">
</iframe>
</html>
Thats What I have been using, I have put lots of different stuff in the height selection, none of which has worked.
Thanks
Diarmuid
Basil
08-29-2006, 06:09 PM
<html>
<head>
<title>Student Magazines Media Centre</title>
</head>
<frameset rows="175px, *" frameborder="0">
<frame name="frame1" src="picture.htm">
<frame name="frame2" src="index2.htm">
</frameset>
</html>
If you really want to use frames, that would accomplish what you are trying to do. I don't personally see any real advantage to giving a banner an entire frame instead of just including it in your html files.
redsox9
08-30-2006, 06:03 AM
Hi, Diarmuid:
To further go with what dvessel touched on, I would just not use frames. Do you have a real reason to do this? I learned long ago to avoid the use of the FRAME tag. Again, it's just my opinion but I know that most designers would agree with me.
If you do continue to use frames, Basil's example is the way to go.
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.