Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I have two columns inside a Bootstrap Panel?

Just getting started with Bootstrap.

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

Thanks

like image 249
user3319446 Avatar asked Feb 17 '14 14:02

user3319446


People also ask

Can you put a column inside of a column in Bootstrap?

You can nest columns inside columns as long as those nested columns "live" inside a row. In fact, if you check the html behind that very example on Bootstrap documentation you will see that those nested columns are in fact placed inside a row.

Is it possible to put a table within the Bootstrap panel?

To create a non-bordered table within a panel, use the class . table within the panel.


2 Answers

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

like image 156
Zim Avatar answered Sep 22 '22 17:09

Zim


You can also have a panel with a table:

<div class="panel panel-default">      <div class="panel-heading">Title</div>      <table class="table">         <tr>             <td>Column 1</td>             <td>Column 2</td>         </tr>      </table> </div> 
like image 40
Brent Washburne Avatar answered Sep 20 '22 17:09

Brent Washburne