O
O
obraz462015-12-01 13:47:13
css
obraz46, 2015-12-01 13:47:13

How to darken Z-index in CSS?

My problem is that when the application block opens in it, all Z-index objects are not darkened, but the whole site does it. How to fix such an error?

#overlay {
    width: 100%;
    height: 100%;
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    background: #000;
    opacity: .8;
}

b3cb13d05dc14eb290adae664a1a05d2.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Aleksandr, 2015-12-01
@obraz46

z-index ?

V
vvvadimos, 2015-12-01
@vvvadimos

you need to correctly set the z-index to
the blocks that are on top should be larger, so that below them below. moreover, for all elements where the z-index is, you need to prescribe a position other than static

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question