If I understand your own goal correctly, you already have the answer to your question. ;-) Remove the background color from optn
and add it instead of optn-group
.
As you already found out, if you have a different background color for optn
on hover or active, it is still on top of this insert shadow. An easy and perhaps lazy solution is to not change the background color for them, but use text color and other effects (for example, a shift of 1px down). Or, if you need a border radius, but for these special cases (hovering, activity) you can live without a shadow, just set the boundary radii accordingly.
In addition, do not let the world motivate you to think that it is only because we have great new CSS tools that you can no longer use images. What you REALLY want to do may be even easier with the images.
Look at the pink scissors effect on numerous web pages and it is still made using one or more transparent PNGs.
source share