Element always on top

1k Views Asked by At

I'm writing a plugin in jquery so that i can style my select lists. I replace the select list with a div and within this div theres an unordered list with position absolute. I want this ul element to always be on top and even ignore overflow hidden. How can i do this with jquery?

Thanks Emil

2

There are 2 best solutions below

2
On

Position absolute will already be on top of other statically positioned elements. For further specifications set the z-index of the ul.

0
On

set the css z-index and overflow properties on the containing div