You need to set position: fixed;
either to the root UL element, or to some of its parent containers. What is the problem of setting a specific width as well? If it causes any issues, you can also try experimenting with setting left
and right
instead of width
.
If you are still having troubles, please post some kind of demo URL and explain what exactly you are trying to achieve and I will check it.
Cheers!