Each box has a number which is it's z-index value. The box mini 2 is a child of box 2. So despite it's high z-index of 5 it is still below box 3.