javascript - How to keep my top menu stay fixed on scroll? - Stack Overflow

Website: In this page I want the top menu to stay on the top of the page when a usermember scrolls.I&

Website: /

In this page I want the top menu to stay on the top of the page when a user/member scrolls.

I'm wondering if this is possible if so please tell me how.

Website: http://revelationcraft./

In this page I want the top menu to stay on the top of the page when a user/member scrolls.

I'm wondering if this is possible if so please tell me how.

Share Improve this question edited May 22, 2013 at 9:37 Carol Skelly 363k92 gold badges737 silver badges647 bronze badges asked May 22, 2013 at 2:12 user2407722user2407722 31 silver badge2 bronze badges 0
Add a ment  | 

2 Answers 2

Reset to default 4

Add position:fixed; to div#ln-bar.

There are many questions on this such as this: How to create sticky header bar for a website It is called a sticky header and can be created in many different languages such as css, and jQuery. All you have to do in this case is create a div for your header and use this: position:fixed;. All you have to do is make the z-index higher than any other div or class so you don't have any troubles with this, unless of course, you want to have that happen.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1744321375a4568431.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信