Created
March 25, 2016 19:36
-
-
Save andrunix/77776e8260512697fb12 to your computer and use it in GitHub Desktop.
Fixed Position Div
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<style> | |
body { | |
margin: 0; | |
padding: 0; | |
} | |
.verify-bar { | |
background-color: #f66; | |
height: 30px; | |
padding: 4px; | |
margin-top: 15px; | |
width: 95%; | |
} | |
.navbar { | |
/* display: none; */ | |
background-color: #6f6; | |
position: fixed; | |
top: 0px; | |
left: 0px; | |
height: 30px; | |
width: 90%; | |
} | |
.container { | |
background-color: #66f; | |
min-height: 600px; | |
} | |
</style> | |
</head> | |
<body> | |
<header> | |
<div class="navbar">navbar</div> | |
</header> | |
<div class="verify-bar">verify</div> | |
<div class="container"> | |
<div> container</div> | |
</div> | |
</body> | |
</html> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment