"Half-width columns"
Bootstrap 3.3.0 Snippet by yamamoto

<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.0/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div class="container"> <div id="content-row" class="row"> <div class="col-md-2 content" style="background-color:gray">cell2</div> <div class="col-md-1 content" style="background-color:gray">cell1</div> <div class="col-md-1" style="background-color:green; padding: 0px;"> <div style="width: 50%; background-color:red; float: left; "> half </div> <div style="width: 50%; background-color:red; float: right; "> half </div> </div> <div class="col-md-8 content" style="background-color:gray">cell8</div> </div> <div id="content-row" class="row"> <div class="col-md-2 content" style="background-color:gray">cell2</div> <div class="col-md-1 content" style="background-color:gray">cell1</div> <div class="col-md-1" style="background-color:green; padding: 0px;"> <div style="width: 50%; background-color:red; float: left; "> half </div> <div style="width: 50%; background-color:red; float: right; "> half </div> </div> <div class="col-md-8 content" style="background-color:gray">cell8</div> </div> <div id="content-row" class="row"> <div class="col-md-2 content" style="background-color:gray">cell2</div> <div class="col-md-1 content" style="background-color:gray">cell1</div> <div class="col-md-1" style="background-color:green; padding: 0px;"> <div style="width: 50%; background-color:red; float: left; "> half </div> <div style="width: 50%; background-color:red; float: right; "> half </div> </div> <div class="col-md-8 content" style="background-color:gray">cell8</div> </div> Your solution:<br> <div id="content-row" class="row"> <div class="col-md-offset-2 col-md-2 content" style="background-color:green"> some content </div> <div id="content" class="col-md-offset-1 col-md-5 content" style="background-color:orange"> some other content </div> <div id="sidbar" class="col-md-2" style="background-color:blue;">sidebar</div> </div> half size with nesting:<br> <div id="content-row" class="row"> <div class="col-md-offset-2 col-md-2 content" style="background-color:green"> some content </div> <div id="content" class="col-md-6 content" style="background-color:orange"> <div class="row"> <div id="content" class="col-md-offset-1 col-md-11 content content" style="background-color:pink"> some other content </div> </div> </div> <div id="sidbar" class="col-md-2" style="background-color:blue;">sidebar</div> </div> space of the gutter:<br> <div id="content-row" class="row"> <div class="col-md-offset-2 col-md-2 content" style="background-color:green"> some content </div> <div id="content" class="col-md-6 content" style="background-color:orange"> <div style="background-color:red;">some other content</div> </div> <div id="sidbar" class="col-md-2" style="background-color:blue;">sidebar</div> </div> Manipulated space of the gutter, using padding won't break the grid:<br> <div id="content-row" class="row"> <div class="col-md-offset-2 col-md-2 content" style="background-color:green"> some content </div> <div id="content" class="col-md-6 content" style="background-color:orange; padding-left:1px; padding-right:0"> <div style="background-color:red;">some other content</div> </div> <div id="sidbar" class="col-md-2" style="background-color:blue;">sidebar</div> </div> </div>
div.container div.row { border-right: 1px solid yellow; } div.container div.row div { border-right: 1px solid orange; }

Related: See More


Questions / Comments: