Note that z-index stacking applies only to sibling elements (i.e., elements that are children of the same container). If two elements that are not siblings overlap, setting their individual z-index attributes does not allow you to specify which one is on top. Instead, you must specify the z-index attribute for the two sibling containers of the two overlapping elements.
--<<JavaScript: The Definitive Guide, 5th Edition >> 16.2.4. The Third Dimension: z-index