Created
October 20, 2014 13:41
-
-
Save yutingzhao1991/8622548d0516c4509bc2 to your computer and use it in GitHub Desktop.
Simple bootstrap grid system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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