blob: 6eb6e29272968ecca56627e73acecf256beca0cb (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
<!DOCTYPE html>
<style>
div { position: relative; width: 4em; height: 4em; top: 2em; left: 2em }
</style>
<div style="background: red">
<div style="z-index: -1; background: green"></div>
</div>
<div style="background: blue"></div>
<br>
<div style="z-index: 0; background: red">
<div style="z-index: 1; background: green"></div>
</div>
<div style="background: blue"></div>
<br>
<div style="background: red">
<div style="z-index: 1; background: green"></div>
</div>
<div style="background: blue"></div>
|