Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Bootstrap 3 Splitting col-md-9 into two equal columns

I am working with the latest release of Bootstrap and I have the following:

<div class="col-md-3">
    <h3>One Sidebar Section</h3>
</div>
<div class="col-md-9">
    <div class="col-md-6"><h3>Half Section</h3></div>
    <div class="col-md-6"><h3>Half Section</h3></div>
</div>

But the above isn't working! How can I split my .col-md-9 into two equal parts?

like image 351
J86 Avatar asked Mar 13 '26 09:03

J86


1 Answers

Your almost there, you just need to add a row surrounding the two col-md-6:

<div class="col-md-3">
<h3>One Sidebar Section</h3>
</div>
<div class="col-md-9">
   <div class="row">
   <div class="col-md-6"><h3>Half Section</h3></div>
   <div class="col-md-6"><h3>Half Section</h3></div>
   </div>
</div>

See the documentation about Nesting Columns: http://getbootstrap.com/css/#grid-nesting

like image 52
moodyjive Avatar answered Mar 14 '26 23:03

moodyjive



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!