I want to use box-shadow everywhere except from the top on this example:
I'm pretty sure it can be done with z-values but I'm not sure how, as you can see I've had a little play trying but no luck.
I want to use box-shadow everywhere except from the top on this example:
I'm pretty sure it can be done with z-values but I'm not sure how, as you can see I've had a little play trying but no luck.
I wouldn't recommend using z-index.
Consider using the following style:
ul:not(:first-child) {
box-shadow:0 0 40px black;
}
I'm gonna leave this but I think the comment you just posted helped clarify what you're looking for.
If you use position: absolute
, you have to provide the position (top
, left
, etc) as well. Otherwise position
and z-index
have no effect and the elements will be drawn in the order they appear in the DOM.