Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CSS Box shadow doesn't appear in Chrome

I've been trying this but for some strange reason, The box-shadow won't appear for the <nav> tag. I also tried changing the z-index to a higher value incase the next element was above it, still it doesn't work. Can anyone help with this and a possible explanation?

Here's the code.

https://jsfiddle.net/dqLvaghn/2/

Thanks in advance

like image 291
Gowri Sankar Avatar asked Dec 24 '22 10:12

Gowri Sankar


1 Answers

Your box-shadow 4th value is too big. But before that issue, add position:relative to your both elements, because z-index doesn't work without a position value.

like image 200
n1kkou Avatar answered Dec 27 '22 03:12

n1kkou