Page 1 of 1

HTML Frames

Posted: Fri Nov 15, 2002 5:29 pm
by evilmonkey
Hi. I have a really n00bish HTML question. I have two (2) frames:

Code: Select all

<frameset cols="225,*" frameborder="0" border="0" framespacing="0"> 
    <frame name="leftFrame" scrolling="NO" noresize src="bintaplate3.htm" target="mainFrame" >
 <frame name="mainFrame" src="news.htm" scrolling="auto" target="_self">
  </frameset>
  </frameset>
My problem is, I need 'mainFrame' to be 90 pixels lower than the top of the page. Is it possible/What is the code for making it possible? :D

Thanks.

Cheers,
EvilMonkey Administrator.

Re: HTML Frames

Posted: Sat Nov 16, 2002 4:58 am
by Heavy
Do you mean like this?

Code: Select all

<frameset cols="225,*" frameborder="0" border="0" framespacing="0"> 
    <frame name="leftFrame" scrolling="NO" noresize src="bintaplate3.htm" target="mainFrame" >
    <frameset rows="90,*" frameborder="0" border="0" framespacing="0"> 
        <frame name="bannerFrame" src="banner.htm" noresize scrolling="auto" target="_self">
        <frame name="mainFrame" src="news.htm" scrolling="auto" target="_self">
    </frameset>
</frameset>
BTW, a <frameset> tag should be closed with a </frameset> tag. Not two... 8O

Posted: Sat Nov 16, 2002 11:29 am
by evilmonkey
Can this be done witout inserting another frame (banner frame)? I want leftframe to be both leftframe and bannerframe, eliminating the need for the "bannerframe" How can I push the "mainframe" 90 pixels down?

Thanks.

Posted: Sat Nov 16, 2002 3:10 pm
by volka
you may set the padding and/or margin property of the body element in the document of the frame-content

Try an IFRAME

Posted: Sun Nov 17, 2002 10:35 am
by Heavy
Try an IFRAME:

Code: Select all

<html>
	<body>
		<table border="1" width="100%" height="100%">
		<tr height="90">
			<td width="1" nowrap="true">Upper left</td>
			<td>Upper right</td>
		</tr>
		<tr height="100%">
			<td nowrap="true">Lower left</td>
			<td><iframe src="phpinfo.php" frameborder="1" width="100%" height="100%"></iframe></td>
		</tr>
		</table>
	</body>
</html>
and another one with filename: phpinfo.php

Code: Select all

<?php phpinfo();?>
It works with at least IE (didn't test it though) and Netscape 7.

AArgh! My chair broke! :oops:

Posted: Sun Nov 17, 2002 11:05 am
by volka
AArgh! My chair broke!
time for a walk and sauna? :D

Posted: Sun Nov 17, 2002 6:43 pm
by Heavy
Yeah... well. I AM heavy, but it's not only pork.
I'm 196 cm tall.
My foot does not fit on an A4 size paper, not even diagonally.
Let's just say my brain takes 40% of my body weight 8)
The chair is very worn. I have changed its clothing two times with needle and thread. How many times have you guys done that?
We could say it's just old enough to crack.

But! Let's not change the subject of this topic! :wink:

Posted: Tue Nov 19, 2002 8:43 pm
by evilmonkey
Hello everyone.

I fixed my problem by messign with the margins (setting them to 0), and have not had a chance to try your script, heavy.

Thanks for your help mates.

EvilMonkey Admin.