Fix z-index stacking with fixed position

This commit is contained in:
Niklas von Hertzen
2014-09-21 11:44:11 +03:00
parent 24d9a22556
commit b1f948bb60
4 changed files with 28 additions and 3 deletions

View File

@ -0,0 +1,25 @@
<!DOCTYPE html>
<html>
<head lang="en">
<meta charset="UTF-8">
<title>z-index17</title>
<style>
.z {
background: darkolivegreen;
position: fixed;
right: 0;
left: 0;
height: 100px;
z-index: 10;
top: 0;
}
body {
background: violet;
}
</style>
<script type="text/javascript" src="../../test.js"></script>
</head>
<body>
<div class="z">fixed z-index 10</div>
</body>
</html>