Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Jun 2002
    Posts
    34
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Frames and tables

    I'm having problems with incorporating frames and tables.

    To start with, using just tables, I have a nicely formatted heading and option area. The zip file of the screen dump was unfortunately too big to send, but the screen has ten menu options, each a td element, spaced evenly across the entirety of the screen.

    The result when I call the original html file (unchanged) with the following html code:

    <html>

    <frameset rows="30%,*" border=1>

    <frame src="testmenu.htm">
    <frame src="mainbody.htm" name=mainbody>

    </frameset>

    </html>

    isn't as good, and the result of the frameset seems to be to include enough space on the right hand side of the screen to accommodate a scrollbar, even though one is not required, so that the menu options don't cover the entirety of the screen but stop short by about the width of a scrollbar.

    Can anyone tell me what is happening here?

    Alternatively, the reason I did this was that I want the contents of the screen to differ according to the selected menu option, so thought that frames might be a good idea.

    Is there an alternative to using frames but still having variable screen display? Is there, for instance, a document.clear option?

    I guess the only problem I see with this is that I'd have to display the heading and table of menu options again and again to give the appearance of a static navigation area, which is what I want.

    Any help would be appreciated.

    Thanks.

    Russell.

  • #2
    Senior Coder
    Join Date
    Jun 2002
    Location
    The Netherlands, Baarn, Ut.
    Posts
    4,253
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Russell,

    for the first frame (the menu) you can add:

    <frame src="testmenu.htm" scrolling="no"> (in bold);

    this should stop your frame from showing a scrollbar, or reserving room for it when it isn't necessary.
    On top of that, you could try setting the top frame height to an absolute value instead of a percentage to make sure there always is enough room for your menu:

    <frameset rows="80,*" border=1> (i just picked a value...)
    Regards,
    Ronald.
    ronaldvanderwijden.com


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •