div-layer-tests

GO TO VISIBLE

First section 1

div layer id “outerWrap” with z-index 0

div layer id “layer1” with z-index 2
div layer id “layer2” with z-index 1

Second section 2 VISIBLE

div layer id “outerWrap” with z-index 0

div layer id “layer1” with z-index 1
div layer id “layer2” with z-index 2

The z-index of Div layer “layer 1” is 2.
The z-index of Div layer “layer 2” is 1.
The z-index of Div layer “layer 1” is higher than “layer 2”. Therefore “layer 1” will float over “layer 2”