Log in

View Full Version : Static Banner (if thats what its called)



Jakieboi
05-02-2011, 10:13 AM
Hey guys,

I've just started web design but i have a idea in my head and i cant seem to find the code on the internet.

What i would like to do it have the top part of my home page (that has the menu and logos in it) to not move, so you can scroll up and down the page but the menu and logo will allways remain at the top of your screen, to save having to scroll back upto the top of the page just to navigate around.

If this is possible please get back to me.

Thanks

-Jake

djr33
05-02-2011, 05:04 PM
What you need can be done using the CSS property position:fixed;.
There are also a number of scripts here that achieve that effect. Some examples are below, but you will find more if you browse through the scripts:
http://www.dynamicdrive.com/dynamicindex1/staticmenu3.htm
http://www.dynamicdrive.com/dynamicindex1/sm/index.htm


The two terms you may want to use while searching are "static" and "fixed". Also "scroll" might bring up things that don't scroll.