Skip to content

Instantly share code, notes, and snippets.

@edderrd
Created May 10, 2012 23:07
Show Gist options
  • Save edderrd/2656480 to your computer and use it in GitHub Desktop.
Save edderrd/2656480 to your computer and use it in GitHub Desktop.
html: bootstrap topbar layout
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>PROJECT</title>
<meta name="description" content="Edder Rojas Project">
<meta name="author" content="Edder Rojas">
<!—[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]—>
<link href="/css/bootstrap.min.css" rel="stylesheet">
<style>
body { padding-top: 60px; }
</style>
<link href="/css/bootstrap-responsive.min.css" rel="stylesheet">
<script src="js/jquery.min.js"></script>
<script src="/js/bootstrap.min.js"></script>
</head>
<body>
<div class="navbar navbar-fixed-top">
<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="/">PROJECT</a>
<div class="nav-collapse">
<ul id="menu" class="nav">
<li><a href="#">Home</a></li>
<li><a href="#">About</a></li>
<li><a href="#">Contanct</a></li>
</ul>
</div><!-- /.nav-collapse -->
<ul class="nav pull-right"> <!-- user-menu dropdown -->
<li class="dropdown" id="user-menu">
<a href="#user-menu" class="dropdown-toggle" data-toggle="dropdown">
<i style="opacity: 0.40;" class="icon-user icon-white">&nbsp;</i>&nbsp;Anonymous
<b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li data-name="user-activity"><a href="#">Preferences</a></li>
<li class="divider"></li>
<li><a href="#">Logout</a></li>
</ul>
</li>
</ul> <!-- /user-menu dropdown -->
</div>
</div><!-- /navbar-inner -->
</div>
<div class="span10">
<div class="well"><h1>Sample content</h1></div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment