I am making a project and don't want to use "position" property but want to use "z-index" property , i am new to CSS please someone help me out..............
Harry_matharoo___________
Not possible. Use relative positioning at the very least. But it really depends on your design and markup.
div { position: relative; z-index: 1; }
Z-index can't perform with static positioning. Use anything else.
position: relative; will not have any impact on the layout unless you explicitly state a top/bottom/left/right on the element.
position: relative;
Position relative by default just uses it's natural position within the page as the starting point so I'm not sure why you want to avoid using it?
Thanks for helping a newbie friends
I am making a project and don't want to use "position" property but want to use "z-index" property , i am new to CSS please someone help me out..............
Harry_matharoo___________
Not possible. Use relative positioning at the very least. But it really depends on your design and markup.
Z-index can't perform with static positioning. Use anything else.
position: relative;will not have any impact on the layout unless you explicitly state a top/bottom/left/right on the element.Position relative by default just uses it's natural position within the page as the starting point so I'm not sure why you want to avoid using it?
Thanks for helping a newbie friends