Z-Index help | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Z-Index help

#endRpsRequest { width: 250px; height: 250px; background-color: white; border-radius: 10px; z-index: 10; } This html Element has a z-index of 10, and it is still the bottom most layer. This is the only element with the “Z index” property. The full code is attached. To access the element’s visibility, click on the unnamed button in the start screen, select rock paper or scissors, and then click end game. The white square is the request to end the game. https://code.sololearn.com/Wka59zuKs8eu/?ref=app

3rd Aug 2021, 4:28 PM
<p id=“username”>The Cuber</p>
<p id=“username”>The Cuber</p> - avatar
2 Answers
+ 1
In order to change the z-index position, you first need to determine the position for this element so that it goes out of the general flow. For example (position: absolute).
3rd Aug 2021, 8:11 PM
Solo
Solo - avatar