I need some help with the z-index. | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

I need some help with the z-index.

Im placing the z-index: -1; for the gray contentBox but its not doing something. Im trying to get the contentBox behind the form.

14th Nov 2018, 3:13 PM
Jeremy Cruz
Jeremy Cruz - avatar
2 Answers
+ 1
The code you mentioned is not in your code playground. Please share your code by posting a link here.
15th Nov 2018, 4:03 PM
Gordon
Gordon - avatar
0
z-index can be very tricky and might have different result with differents web browsers. I personnaly prefer never use that CSS attribute and prefer to change orders of HTML tags directly in the DOM structure, which will naturally change Z axe from HTML elements.
14th Nov 2018, 3:21 PM
Geoffrey L
Geoffrey L - avatar