Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<!DOCTYPE html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1">
<style>
.body-container {
height: 1500px;
}
.navbar-fixed-top {
position: fixed;
border: 1px solid black;
width: 100%;
}
.main_body {
position: absolute;
top: 0;
bottom: 0;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
}
</style>
</head>
<body>
<div class='main_body'>
<nav class="navbar-fixed-top">
<p>
hi
</p>
</nav>
<div class="body-container">
<div class="starter-template">
<h1>Bootstrap starter template</h1>
<p class="lead">Use this document as a way to quickly start any new project.<br> All you get is this text and a mostly barebones HTML document.</p>
</div>
</div><!-- /.container -->
</div>
</body>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.