Making objects or shoes go behind others in css | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Making objects or shoes go behind others in css

How do I make objects like shapes I create with css go behind the header and other webpage elements

23rd Nov 2021, 2:20 PM
Nana Sark
Nana Sark - avatar
4 Answers
23rd Nov 2021, 2:34 PM
PanicS
PanicS - avatar
+ 3
You can use lower z-index values on those elements that you want to move behind other elements and use larger z-index values to move forward. For example if you have two red and green divs ovelapping each other. Then if you wanna move red div forward you should use greater z-index value for red div and lower value for green div. Maybe I answered your question :)
23rd Nov 2021, 3:34 PM
Nabin Bhatt
Nabin Bhatt - avatar
+ 2
Thank you very much I will try it out and get back to you
23rd Nov 2021, 2:34 PM
Nana Sark
Nana Sark - avatar
+ 1
Nabin Bhatt thank you sir
23rd Nov 2021, 3:53 PM
Nana Sark
Nana Sark - avatar