Can I have two columns inside a Bootstrap Panel?

user3319446 picture user3319446 · Feb 17, 2014 · Viewed 44.4k times · Source

Just getting started with Bootstrap.

Is there a way of having two columns in side a panel?

Thanks

Answer

Zim picture Zim · Feb 17, 2014

Sure.. just like you'd create any Bootstrap columns:

<div class="panel panel-default">
     <div class="panel-heading">Title</div>
     <div class="panel-body">
        <div class="row">
            <div class="col-md-6">col1</div><div class="col-md-6">col2</div>
        </div> 
        <div class="row">
            <div class="col-md-6">col1</div><div class="col-md-6">col2</div>
        </div> 
        <div class="row">
            <div class="col-md-6">col1</div><div class="col-md-6">col2</div>
        </div> 
     </div>
</div>

http://www.bootply.com/114526