Skip to content

Instantly share code, notes, and snippets.

@yutingzhao1991
Created October 20, 2014 13:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yutingzhao1991/8622548d0516c4509bc2 to your computer and use it in GitHub Desktop.
Save yutingzhao1991/8622548d0516c4509bc2 to your computer and use it in GitHub Desktop.
Simple bootstrap grid system
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>row and col</title>
<style>
.row {
margin-right: -15px;
margin-left: -15px;
}
.col {
width: 33.333%;
float: left;
display: inline-block;
padding: 15px;
box-sizing: border-box;
}
</style>
</head>
<body>
<div class="row">
<div class="col"> col 1 </div>
<div class="col"> col 2 </div>
<div class="col"> col 3 </div>
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment