Here is html+css: http://jsfiddle.net/xgXXN/
I want to orange (parent li) appear OVER green (nested ul). The green ul HAS TO be positioned absolutely because I don’t want it to stretch parent li.
I can’t find solution to this :(. The best would be just css modification not HTML if it’s possible.
Issue you are having is because you are applying the
z-indexto theliwhich is then also applying through to the child list of this li.Try setting
position:relativeandz-indexto the anchor instead.http://jsfiddle.net/N62x8/