[Solved] How to use z-index to position elements? | Sololearn: Learn to code for FREE!
Neuer Kurs! Jeder Programmierer sollte generative KI lernen!
Kostenlose Lektion ausprobieren
+ 2

[Solved] How to use z-index to position elements?

So i have the following code and i want to know if it's possible to place blue div above black(opacity:0.7) div and have that white strip below the yellow div but it should be above black div as well. If it is , then what exactly i need to do and if it's not then how should i rearrange the divs ? Any help is much appreciated, ty ! https://code.sololearn.com/W62Hlx2LK9G3/?ref=app Edit: I know how to use z-index but just can't figure how to do what i asked for. Edit2: I believe it's not possible with the current div setup so i will be rearranging them and let others know of the solution later on, but till then i will keep it open . Edit3: thank you everyone for your time , the only way i found is to move blue in front , so it is above black div and to push the white strip down by 40px which gives an illusion of the top of strip below yellow while it is still above black.

20th Feb 2021, 12:00 PM
Abhay
Abhay - avatar
2 Antworten
+ 1
AzhagesanŃâż(╦ÖÔŁą╦Ö) thank you but blue div should be above black div not yellow.
20th Feb 2021, 12:23 PM
Abhay
Abhay - avatar
+ 1
WileyR ?? I know how to use z-index . Anyway ty :)
20th Feb 2021, 1:21 PM
Abhay
Abhay - avatar