Skip to content

Instantly share code, notes, and snippets.

@angelochen960
Created February 2, 2014 05:15
Show Gist options
  • Save angelochen960/8763400 to your computer and use it in GitHub Desktop.
Save angelochen960/8763400 to your computer and use it in GitHub Desktop.
avoid scrolling over top line (HELLO)
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- Le styles -->
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.3.1/css/bootstrap-combined.min.css" rel="stylesheet">
<style>
body {
padding-top: 70px; /* 60px to make the container go all the way to the bottom of the topbar */
}
</style>
<!-- <link href="/bootstrap/css/bootstrap-responsive.css" rel="stylesheet"> -->
<!-- HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
</head>
<body>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="container" id="topContent" style="padding-top: 3px;padding-bottom: 3px; color: #808080;">
HELLO
</div>
<div class="navbar-inner" >
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="/">
<span>TITLE</span>
</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li ><a ng-href="*">Menu1</a></li>
<li ><a ng-href="*">Menu2</a></li>
</ul>
</div>
</div>
</div>
</div>
<div class="container" style="padding-top: 10px;">
<p>something goes here</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
<p>asdfasdfasdf</p>
</div>
<!-- /container -->
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment