Network: Web Design: An open and shut case for frames

Minimise the size of elements when they are not needed

Jason Cranford Teague
Sunday 20 September 1998 23:02 BST
Comments

ONE COMPLAINT I hear about frames is that they monopolise screen space by placing menus and titles permanently on the screen. While this may be fine if you have a large monitor with plenty of room, those with smaller monitors can be turned off by the experience.

However, if you have worked in any type of windows environment before, you will notice that there are usually ways to open and close different "panes" in the window, to allow maximum space for important information by minimising the size of elements, such as navigation, when they are not needed. Why should the Web be any different?

I want to show you a technique I developed using nested framesets and some JavaScript that allows you to open and close a menu in a frame. When the menu is closed, the content area of the window can use as much of the space as needed. Check out http://www. webbedenvironments.com/examples/ 37.html if you have any problems and to see what this looks like.

First, we have to set up our main frameset, called index.html:

Join our commenting forum

Join thought-provoking conversations, follow other Independent readers and see their replies

Comments

Thank you for registering

Please refresh the page or navigate to another page on the site to be automatically logged inPlease refresh your browser to be logged in