<!DOCTYPE html> <!-- webkit-test-runner [ useFlexibleViewport=true ] --> | |
<html> | |
<head> | |
<meta name="viewport" content="initial-scale=1.0"> | |
<style> | |
body { | |
height: 2000px; | |
margin: 0; | |
} | |
.fixed { | |
position: fixed; | |
} | |
.fixed-bar { | |
position: fixed; | |
top: 10px; | |
left: 0; | |
height: 100px; | |
width: 400px; | |
background-color: blue; | |
} | |
</style> | |
</head> | |
<body class="fixed"> | |
<div class="fixed-bar"></div> | |
</body> | |
</html> |