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

Your support helps us to tell the story

This election is still a dead heat, according to most polls. In a fight with such wafer-thin margins, we need reporters on the ground talking to the people Trump and Harris are courting. Your support allows us to keep sending journalists to the story.

The Independent is trusted by 27 million Americans from across the entire political spectrum every month. Unlike many other quality news outlets, we choose not to lock you out of our reporting and analysis with paywalls. But quality journalism must still be paid for.

Help us keep bring these critical stories to light. Your support makes all the difference.

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