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 02 Answers
Reset to default 4Add 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条)