diff --git a/live-examples/css-examples/positioned-layout/meta.json b/live-examples/css-examples/positioned-layout/meta.json
index 5700a5cf3..55e6af4d7 100644
--- a/live-examples/css-examples/positioned-layout/meta.json
+++ b/live-examples/css-examples/positioned-layout/meta.json
@@ -9,6 +9,14 @@
"fileName": "position.html",
"title": "CSS Demo: position",
"type": "css"
+ },
+ "zIndex": {
+ "baseTmpl": "tmpl/live-css-tmpl.html",
+ "cssExampleSrc": "../../live-examples/css-examples/positioned-layout/z-index.css",
+ "exampleCode": "live-examples/css-examples/positioned-layout/z-index.html",
+ "fileName": "z-index.html",
+ "title": "CSS Demo: z-index",
+ "type": "css"
}
}
}
diff --git a/live-examples/css-examples/positioned-layout/z-index.css b/live-examples/css-examples/positioned-layout/z-index.css
new file mode 100644
index 000000000..8c1bbaef5
--- /dev/null
+++ b/live-examples/css-examples/positioned-layout/z-index.css
@@ -0,0 +1,74 @@
+#example-element {
+ top: 15px;
+ left: 15px;
+ width: 180px;
+ height: 230px;
+ position: absolute;
+ /* center the text so it is visible even when z-index is set to auto */
+ line-height: 215px;
+ font-family: monospace;
+ background-color: #fcfbe5;
+ border: solid 5px #e3e0a1;
+ z-index: auto;
+}
+
+.container {
+ display: inline-block;
+ width: 250px;
+ position: relative;
+}
+
+.block {
+ width: 150px;
+ height: 50px;
+ position: absolute;
+ font-family: monospace;
+}
+
+.blue {
+ background-color: #E5E8FC;
+ border: solid 5px #112382;
+ /* move text to the bottom of the box */
+ line-height: 55px;
+}
+
+.red {
+ background-color: #fce5e7;
+ border: solid 5px #e3a1a7;
+}
+
+.position1 {
+ top: 0;
+ left: 0;
+ z-index: 6;
+}
+
+.position2 {
+ top: 30px;
+ left: 30px;
+ z-index: 4;
+}
+
+.position3 {
+ top: 60px;
+ left: 60px;
+ z-index: 2;
+}
+
+.position4 {
+ top: 150px;
+ left: 0;
+ z-index: auto;
+}
+
+.position5 {
+ top: 180px;
+ left: 30px;
+ z-index: auto;
+}
+
+.position6 {
+ top: 210px;
+ left: 60px;
+ z-index: auto;
+}
diff --git a/live-examples/css-examples/positioned-layout/z-index.html b/live-examples/css-examples/positioned-layout/z-index.html
new file mode 100644
index 000000000..ebbb3c42c
--- /dev/null
+++ b/live-examples/css-examples/positioned-layout/z-index.html
@@ -0,0 +1,52 @@
+
+
+ z-index: auto;
+
+ z-index: 1;
+
+ z-index: 3;
+
+ z-index: 5;
+
+ z-index: 7;
z-index: 1;
-
-z-index: 3;
-
-z-index: 5;
-
-z-index: 7;
-
-