cssz-index

Specifying CSS stack order without using z-index


I am wondering if either of the following are possible:

  1. Is there a way to use z-index without specifying the position attribute for an element.
  2. Is there any way to specify the CSS stack order for elements without using either the z-index property or the position attribute

Solution

    1. According to w3school z-index can only work on positioned elements.

    2. The only other way is change the order of the elements in the html.