File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
2+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3+
4+ < html >
5+ < head >
6+ < title > Negative z-indexes</ title >
7+ < script type ="text/javascript " src ="../../test.js "> </ script >
8+
9+ < style type ="text/css ">
10+ html {
11+ padding : 20px ;
12+ font : 12 px/20px Arial, sans-serif;
13+ }
14+ # div1 {
15+ padding : 10px ;
16+ position : relative;
17+ }
18+
19+ # div2 {
20+ background : # 7cb659 ;
21+ position : absolute;
22+ z-index : -999998 ;
23+ left : 0px ;
24+ top : 0px ;
25+ }
26+
27+ # div3 {
28+ background : # b69f1a ;
29+ position : absolute;
30+ z-index : -999999 ;
31+ left : 0px ;
32+ top : 0px ;
33+ }
34+ </ style >
35+ </ head >
36+ < body >
37+ < div id ="div1 ">
38+ < div id ="div2 ">
39+ < h1 > Div Element #2</ h1 >
40+ < div id ="div3 ">
41+ < div >
42+ < h1 > Div Element #3</ h1 >
43+ </ div >
44+ </ div >
45+ </ div >
46+ </ div >
47+ </ body >
48+ </ html >
You can’t perform that action at this time.
0 commit comments