-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
73 lines (73 loc) · 2.72 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">
<link rel="stylesheet" href="./normalize.css">
<link rel="stylesheet" href="./style.css">
<title>Understanding z-index</title>
</head>
<body>
<div class="container">
<div class = 'resetBar'>
<span class="topic">Understanding z-index in CSS</span>
<span id="resetButton">Reset</span>
</div>
<div class="calculationContainer">
<h2>Enter z-index in the input fields below:</h2>
<div class="calculationContainer1">
<span>Element 1</span>
<input type="text" id="elementInput1">
</div>
<div class="calculationContainer2">
<span>Element 2</span>
<input type="text" id="elementInput2">
</div>
<div class="calculationContainer3">
<span>Element 3</span>
<input type="text" id="elementInput3">
</div>
<div class="calculationContainer4">
<span>Element 4</span>
<input type="text" id="elementInput4">
</div>
<div class="calculationContainer5">
<span>Element 5</span>
<input type="text" id="elementInput5">
</div>
<div class="calculationContainer6">
<span>Element 6</span>
<input type="text" id="elementInput6">
</div>
</div>
<div class="exampleContainer">
<div id="element1">
<span>Element 1</span>
<span id="element1ZIndex">z-index: auto</span>
</div>
<div class="element" id="element2">
<span>Element 2</span>
<span id="element2ZIndex">z-index: auto</span>
</div>
<div class="element" id="element3">
<span>Element 3</span>
<span id="element3ZIndex">z-index: auto</span>
</div>
<div class="element" id="element4">
<span>Element 4</span>
<span id="element4ZIndex">z-index: auto</span>
</div>
<div class="element" id="element5">
<span>Element 5</span>
<span id="element5ZIndex">z-index: auto</span>
</div>
<div class="element" id="element6" >
<span>Element 6</span>
<span id="element6ZIndex">z-index: auto</span>
</div>
</div>
</div>
<script src="./main.js"></script>
</body>
</html>