Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Panel heading is not full

When I use the class col-lg-6 on a panel in bootstrap, the panel-heading does not fill the width of the panel.

How can this be fixed?

<div class="container">
<div class="row">
<div class="panel panel-default col-lg-6">
<div class="panel-heading">Panel heading without title</div>
<div class="panel-body">
Panel content
</div>
</div>
</div>
</div>
like image 370
Christian Caspovich Avatar asked May 02 '15 15:05

Christian Caspovich


1 Answers

Easy fix. Move the col-lg-6 to a div tag that surrounds the panel as such:

<div class="row">
    <div class="col-lg-6">
        <div class="panel panel-default">
            <div class="panel-heading">Panel heading without title</div>
            <div class="panel-body">
                Panel content
            </div>
        </div>
    </div>
</div>
like image 74
Martin Noreke Avatar answered Nov 20 '22 09:11

Martin Noreke