赤い方はz-index:40億、青い方はz-index:30億だが
z-indexの上限値が2147483647なので
HTMLの記述順により青が上に表示されている。
#a, #b { position: absolute; width: 100px; padding: 40px 0; font-size: 20px; text-align: center; } #a { top: 0; left: 50px; background: red; z-index: 4000000000; } #b { top: 50px; left: 125px; background: blue; z-index: 3000000000; }