English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I am trying to code a website and i want to create a table or menu that will constantly stay in view on the screen. I don't care if its locked at the top of the screen or if it moves down the side when you scroll. Either way can someone help me?

2006-10-16 03:28:47 · 3 answers · asked by scrplayr06 1 in Computers & Internet Programming & Design

3 answers

Search the net for CSS tutorials.

Rawlyn.

2006-10-16 03:35:02 · answer #1 · answered by Anonymous · 0 1

There are two ways I know of that you can do it, and neither one is without bugs.

The easiest way (and also the old and bad, imo, way) is to use framesets. To do this, you would actually need to create three pages: the main page containing the frame set, the menu frame, and the main content frame. More information on everything required for frames can be found at - http://www.w3schools.com/tags/tag_frameset.asp

The other option (more modern, but still won't necessarily work in all browsers) is to use style sheets. In most of the main browsers you can set a section to be positioned absolutely in a window. This will keep it at that postion no matter what. I haven't used this, but I believe the setting is "position:fixed;" (really, I haven't used framesets either). All you would need to do is add this to the style for the div (or just table) that you are trying to position and then set the top attribute ("top:0;" if you want it always at the top) and the left (or right) attribute.

More info at http://www.w3schools.com/css/

2006-10-16 03:35:56 · answer #2 · answered by John J 6 · 0 0

I would do a search for a java script that will allow anything to remain on the screen when it is scrolled. Matt's script archive I believe has something like this. Hope this helps.

2006-10-16 03:38:55 · answer #3 · answered by Anonymous · 0 0

fedest.com, questions and answers