What code or script am I looking for in order to sticky a menu to the top of the website even as the user scrolls down the page?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
position: fixedOnly use this for horizontal menus though — otherwise links to document fragments will put the content you are linking to under the menu.
Consider not using this, scrolling back up to the top is easy, and screen real estate is valuable (especially on a small display, such as a laptop).