Click here to Skip to main content
15,897,704 members
Please Sign up or sign in to vote.
5.00/5 (1 vote)
See more:
I want to show my Menu in the side or Top of the web page.
Such that when I scroll the page, it is visible to me.
(Like in Crystal Xp style menu show on the Top or sides)
Posted
Updated 30-Sep-10 2:56am
v2

If your site visitors use IE6 the CSS positioning used in the answer by TheyCallMeMrJames will not work.


An alternative solution is to use javascript to scroll the menu with the page.

Place your menu in a div and use the javascript found on this page:

http://www.dynamicdrive.com/dynamicindex1/staticmenu.htm[^]

or use jQuery

http://net.tutsplus.com/tutorials/html-css-techniques/creating-a-floating-html-menu-using-jquery-and-css/[^]
 
Share this answer
 
v2
Comments
TheyCallMeMrJames 30-Sep-10 13:35pm    
I don't believe in IE6 as an excuse to avoid standards. The browser is dead.
Santoshsrs 1-Oct-10 2:34am    
Thank You .I get my problem solved.
Create a DIV element to contain your menu, then use CSS to set the position to fixed. See a sample[^].

Cheers.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900