Y
Y
Yuki Developer2016-05-25 14:17:27
css
Yuki Developer, 2016-05-25 14:17:27

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

3 answer(s)
Z
Zhainar, 2016-05-25
@Yuki1333

Convert to rgba() colors with opacity 0.8.

G
GreatRash, 2016-05-25
@GreatRash

No way.

M
Mikhail Dudar, 2016-05-25
@acsy

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 question

Ask a Question

731 491 924 answers to any question