what is the different between z index and multiple background?? is it same or what? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

what is the different between z index and multiple background?? is it same or what?

im got confused with this thing

28th Feb 2017, 7:27 PM
Saifullah
Saifullah - avatar
4 Answers
+ 17
z-index is the overlapping priority of an element. If you put many elements on top of a specific one but you want this to appear on top you can increase its z-index.
28th Feb 2017, 7:37 PM
Valen.H. ~
Valen.H. ~ - avatar
+ 4
For multiple background, order is defined in the background-image property: background-image: url("most-top-image.url"), url("image.url"), url("most-bottom-image.url");
1st Mar 2017, 4:03 PM
visph
visph - avatar
0
and what about multiple background?
28th Feb 2017, 7:40 PM
Saifullah
Saifullah - avatar
0
multiple background can overlap each other and also merge their color effects but z index just overlaps multiple colors (just colors)
10th Mar 2017, 4:38 PM
Hardik Patel
Hardik Patel - avatar