Bootstrap Panels In this tutorial you will learn how to create In this tutorial you will learn how to create panels with Bootstrap.

Introducing Bootstrap 3 Panels

Sometimes you may need to be placed in the input box to the better performance. In this case the guide plate assembly can be very useful. In its most basic form panel assembly application content around some borders and padding.




<div class="panel panel-default">




<div class="panel-body">Look, I'm in a panel!</div>




</div>




— The output of the above example will look something like this:

Bootstrap Panels

Panels with Heading

You can also add a heading to your panel with .panel-heading class.



<div class="panel panel-default">



<div class="panel-heading">This Page is Disabled</div>






<div class="panel-body">This page is temporarily disabled by the site administrator for some reason.
 <a href="#">Click here</a> to enable the page.</div>



</div>



 

— The output of the above example will look something like this:

Bootstrap Panels with Heading

You can also include heading elements from <h1> to <h6> with a .panel-title class


<div class="panel panel-default">


<div class="panel-heading">


<h1 class="panel-title">Panel Title</h1>


    </div>




<div class="panel-body">Panel content…</div>


</div>


Panels with Footer
Like heading you can also add footer section to your panels using the .panel-footer class. The panel’s footer can be used to wrap buttons or secondary text.


<div class="panel panel-default">


<div class="panel-body">This page is temporarily disabled by the site administrator for some reason.</div>


 


<div class="panel-footer clearfix">


<div class="pull-right">
            <a href="#" class="btn btn-primary">Learn More</a>
            <a href="#" class="btn btn-default">Go Back</a>
        </div>


    </div>


</div>


 

The output of the above example will look something like this:

Bootstrap Panels with Footer

Panels with Contextual States

Like other component you also add contextual state classes like .panel-primary, .panel-success, .panel-info, .panel-warning, or .panel-danger on the panel components to make it more meaningful and drawing attention of the user.

<div class="panel panel-primary">

<div class="panel-heading">

<h3 class="panel-title">301 Moved Permanently</h3>

    </div>


<div class="panel-body">The requested page has been permanently moved to a new location.</div>

</div>


<div class="panel panel-success">

<div class="panel-heading">

<h3 class="panel-title">200 OK</h3>

    </div>


<div class="panel-body">The server successfully processed the request.</div>

</div>


<div class="panel panel-info">

<div class="panel-heading">

<h3 class="panel-title">100 Continue</h3>

    </div>


<div class="panel-body">The client should continue with its request.</div>

</div>


<div class="panel panel-warning">

<div class="panel-heading">

<h3 class="panel-title">400 Bad Request</h3>

    </div>


<div class="panel-body">The request cannot be fulfilled due to bad syntax.</div>

</div>

— The output of the above example will look something like this:

Bootstrap Panels with Contextual States

 

Placing Tables and List Groups inside Panels

You can add any non-bordered table within a panel to create more informative tables.

<div class="panel panel-default">
    <!-- Default panel contents -->
    <div class="panel-heading">User Information</div>
    <div class="panel-body">
        <p>The following table contains some personal information about users.</p>
    </div>
    <!-- Table -->
    <table class="table">
        <thead>
            <tr>
                <th>Row</th>
                <th>First Name</th>
                <th>Last Name</th>
                <th>Email</th>
            </tr>
        </thead>
        <tbody>
            <tr>
                <td>1</td>
                <td>John</td>
                <td>Carter</td>
                <td>johncarter@mail.com</td>
            </tr>
            <tr>
                <td>2</td>
                <td>Peter</td>
                <td>Parker</td>
                <td>peterparker@mail.com</td>
            </tr>
            <tr>
                <td>3</td>
                <td>John</td>
                <td>Rambo</td>
                <td>johnrambo@mail.com</td>
            </tr>
        </tbody> 
    </table>
</div>

Similarly you can include full-width list groups within any panel.
php]

Products

The following products are currently available on our store.

[/php]