block grid library (css & sass) for twitter bootstrap (version 3 & 4), based on the native zurb foundation feature
Install via either bower, npm, CND or downloaded files:
bower install --save bootstrap-block-grid
npm install --save bootstrap-block-grid
Add files to your html
<!-- bootstrap 3 -->
<link rel="stylesheet" href="bower_components/bootstrap-block-grid/dist/bootstrap3-block-grid.min.css">
<!-- bootstrap 4 -->
<link rel="stylesheet" href="bower_components/bootstrap-block-grid/dist/bootstrap4-block-grid.min.css">
<!-- bootstrap 3 -->
<link rel="stylesheet" href="node_modules/bootstrap-block-grid/dist/bootstrap3-block-grid.min.css">
<!-- bootstrap 4 -->
<link rel="stylesheet" href="node_modules/bootstrap-block-grid/dist/bootstrap4-block-grid.min.css">
<!-- bootstrap 3 -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/bootstrap.block-grid/latest/bootstrap3-block-grid.min.css">
<!-- bootstrap 4 -->
<link rel="stylesheet" href="//cdn.jsdelivr.net/bootstrap.block-grid/latest/bootstrap4-block-grid.min.css">
<!-- bootstrap 3 -->
<link rel="stylesheet" href="bootstrap3-block-grid.min.css">
<!-- bootstrap 4 -->
<link rel="stylesheet" href="bootstrap4-block-grid.min.css">
Sample Markup
<div class="block-grid-xs-2 block-grid-sm-3 block-grid-md-4">
<div>
Content 1
</div>
<div>
Content 2
</div>
<div>
Content 3
</div>
<div>
Content 4
</div>
<div>
Content 5
</div>
<div>
Content 6
</div>
</div>
block-grid-xs-1
block-grid-xs-2
block-grid-xs-12
block-grid-sm-1
block-grid-sm-2
block-grid-sm-12
block-grid-md-1
block-grid-md-2
block-grid-md-12
block-grid-lg-1
block-grid-lg-2
block-grid-lg-12
MIT
Version | Tag | Published |
---|---|---|
1.1.7 | latest | 7yrs ago |