Skip to content

Instantly share code, notes, and snippets.

@hansent
Created June 4, 2014 21:19
Show Gist options
  • Save hansent/f84d62343f8889ec557f to your computer and use it in GitHub Desktop.
Save hansent/f84d62343f8889ec557f to your computer and use it in GitHub Desktop.
bootstrap example
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>bootstrap sample</title>
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css">
<!-- Optional theme -->
<link rel="stylesheet" href="//netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap-theme.min.css">
<!-- Latest compiled and minified JavaScript -->
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<style>
html, body {
height: 100%;
margin: 0;
}
.container {
height: 100%;
}
.row {
height: 100%;
}
.left-column {
background-color: #ff0000;
min-height: 100%;
}
.right-column {
background-color: #00ff00;
min-height: 100%;
}
</style>
</head>
<body>
<div class="container">
<div class="row">
<div class="col-sm-4 left-column"> LEFT </div>
<div class="col-sm-8 right-column"> RIGHT </div>
</div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment