Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Frames and tables on same page?

Status
Not open for further replies.

Albuckj2

Programmer
Jan 7, 2003
68
GB
Frames and tables on same page?

I need to structure a page with tables, but want to include 2 frames in the bottom row (because I need the keep the right frame static while users scroll the left frame. I can't use frames to structure the whole page (i.e. - having the title bar in a frame) because I need users to be able to go straight to web pages with specific URLs. I have also been
instrucetd to avoid frames by my tutor. I have tried the code below, but it hasn't worked.

Has anyone done this before? Is it possible???

Thanks for any help.


<table>
<tr>
<td> A title bar appears here </td>
</tr>
</table>

<table>
<tr>
<td>
<frameset cols=&quot;739,*&quot; frameborder=&quot;NO&quot; border=&quot;0&quot; framespacing=&quot;0&quot;>
<frame src=&quot;custom_full_main.htm&quot; name=&quot;customFullMain&quot;>
<frame src=&quot;custom_full_right.htm&quot; name=&quot;customFullRight&quot; scrolling=&quot;NO&quot; noresize>
</frameset>
</td>
</tr>
</table>
 
Hi Albuckj2,

Like you, I am currently working on frames.

Here's my layout, complete with a title bar. The only difference is that the left frame remains static while LabWelcome.html varies.



<frameset ROWS=&quot;65, *&quot; frameborder=0 framespacing=0>
<frame NAME=&quot;top&quot; SRC=&quot;Banner.html&quot; scrolling=&quot;no&quot; border=0 marginheight=0 marginwidth=0 frameborder=0 framespacing=0 NORESIZE><!-- put your title bar or image here -->
<frameset COLS=&quot;125, *&quot; frameborder=0 framespacing=0>
<frame NAME=&quot;lowerleft&quot; SRC=&quot;Menu.html&quot; NORESIZE border=0 marginheight=0 marginwidth=0 frameborder=0 framespacing=0>
<frame NAME=&quot;lowerright&quot; SRC=&quot;Welcome.html&quot; NORESIZE border=0 marginheight=0 marginwidth=0 frameborder=0 framespacing=0>
</frameset>
</frameset>
<noframes>
</noframes>
</frameset>


You can still create the whole thing with frames, but keep that left navigation throughout.

Oh, also define Welcome.html with another frameset that includes the two other frames you want.


Hope this helps.

scripter73
Change Your Thinking, Change Your Life.
 
Allbuckj2
the code you posted above wil not work
framesets should not be posted in the body tag as they take the place of the body tag of an html document they are acontainers for frames and should really be only used as follows

<html><head><title></title><frameset rows=&quot;120,1*&quot;><frame src=&quot;page1.html><frame src=&quot;page2.html></frameset>
</html>

If you wish to put a frame on an html page then you should use an iframe which can be placed between the body tags

<iframe src=page1.html></iframe>
Hope this helps
Ian It's not a lie if you believe it!

| |
 
Thanks NE4x4.

The following worked perfectly:

<table width=&quot;100%&quot; border=&quot;0&quot;>
<tr>
<td><iframe width=&quot;69%&quot; height=&quot;460&quot; id=&quot;customFullMain&quot; name=&quot;customFullMain&quot; src=&quot;custom_full_main.htm&quot;> </td>
<td><iframe height=&quot;460&quot; src=&quot;custom_full_right.htm&quot; name=&quot;customFullRight&quot; scrolling=&quot;NO&quot; noresize></td>
</tr>
</table>

One more problem though - inside the two frames, one scrolls and one doesn't - fine. But is there any way I can sto pthe wholse page scrolling? My frames are perfectly positioned with their bottoms touching the bottom of the web page, but the whole page shows a scrolling bar on the right. I don't want this, is there any way to remove it? I thought there may be some attribute of the body tag, such as &quot;scrolling&quot;, but there isn't.

Anyone know?
 
Change the body tag in your main page as follows

<body scroll=no>
or
<body leftmargin=&quot;0&quot; topmargin=&quot;0&quot; rightmargin=&quot;0&quot; bottommargin=&quot;0&quot; marginwidth=&quot;0&quot; marginheight=&quot;0&quot;>
Regards
Ian It's not a lie if you believe it!

| |
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top