Forum Moderators: mack
I need help with frames. You will notice I just started creating website....
I will like to create a website using frames but... I want to show the site in the middle of the screen no matter what resolution the screen has. In other words I don't want the site to take the whole screen just like a redtangle in the middle. I have accomplish this using tables but not with frames any help?
When you create a frameset document, it declares the configuration - how much screen space goes to each frame declared by rows or columns.
In that declaration you can use * instead of pixels or percentages, and when you use it twice, it means "split the remianing space equally. So a frameset atttribute like this: cols="*,500,*" ...will put a frame that is a 500px wide column right in the middle of the screen, with two equal frames on either side using up all the remaining screen space - whatever it is.
If you then nest another frameset with an attribute of, say, rows="*,400,*" it will put a 400px row in the middle row vertically, with fluid-sized frames on the top and bottom.
So the nested frameset below will give you a 500px by 400px frame (name="main"), perfectly centered on screen. You can then nest further frames in there if you want to.
<frameset cols="*,500,*">
<frame src="a.html" name="left"><frameset rows="*,400,*">
<frame src="aa.html" name="top">
<frame src="main.html" name="centered">
<frame src="bb.html" name="bottom">
</frameset><frame src="b.html" name="right">
</frameset>