Answer the question
In order to leave comments, you need to log in
How to uninherit opacity?
There is a site menu, which becomes fixed and slightly transparent when scrolling (opacity: 0.8;). The menu has a dropdown which should not become transparent, but it inherits the css property from header. Is it possible to somehow cancel the inheritance or will I have to move the drop-down to another place?
Answer the question
In order to leave comments, you need to log in
Through rgba() with a transparency of 0.8 or using pseudo-elements, and make the header itself transparent background-color: transparent;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question