F
F
fastovvlad2018-03-11 21:30:15
css
fastovvlad, 2018-03-11 21:30:15

How to work with z-index?

On the site, the photo is enlarged in the modal window, how to make the fixed navbar go under it, and not burn and function from above
5aa575758f33b308184625.png5aa5757d93352439478424.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Daniel, 2018-03-11
@fastovvlad

Imagine any element with position:absolute; like a book, and now put all such books in a pile. Whichever element has the highest z-index will be the highest.

A
Alex-HAV, 2018-03-11
@Alex-HAV

htmlbook.ru/css/z-index
https://htmlacademy.ru/courses/45/run/19
Well, give them a z-index...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question