I made a small menu with a few buttons. I added a shadow to the menu buttons. It works great. I would like to make some “depths” in the menu, so they really become “buttons”. This works well if you play with shadows. Without any action, the shadow should be in the upper left corner.
#menu ul li {
-moz-box-shadow: -3px -3px -3px #888;
-webkit-box-shadow: -3px -3px -3px #888;
box-shadow: -3px -3px -3px #888;
}
But as soon as I hang over him, this shadow doesn’t want to go away, even when I do
#menu ul li:hover {
border-radius: 5px;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
}
Why doesn't he want to leave?
source
share