K
K
KirylLapouski2018-05-21 14:08:32
css
KirylLapouski, 2018-05-21 14:08:32

How to lay out a translucent block on an element on load?

I am writing a decorator for react components that will display the loading bar. How to make the entire child block a bit grey. That is, to make the block appear inactive. With position: relative, z-index and a wrapper div, it doesn't work - you can see that the semi-transparent background is applied to the parent element, while the child elements remain above the background of the parent, and you want the child elements to be under this background.
How to fix?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Anton Spirin, 2018-05-21
@KirylLapouski

More or less like this.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question