Hello,
Is z-index only used when you set an element's position to absolute or it can also be used with an element having position set to relative?
Thanks
Hello,
Is z-index only used when you set an element's position to absolute or it can also be used with an element having position set to relative?
Thanks
Following the W3C specification:
z-index only works on positioned elements (position:absolute, position:relative, or position:fixed).