4
<div class="container" style="background: yellow;">
<div class="row">
<div class="col-md-8 col-md-offset-2" >
<div class="panel panel-primary">
<div class="panel-heading">
</div>
<div class="panel-body"></div>
</div>
</div>
</div>
</div>
This is the best way to set a customizable width within a container?
<div class="col-md-8 col-md-offset-2" >
Recalling that in the
bootstrap
there are 12 columns, so you share withcol-md-x
wherex
is the size based on the division. Thecol-md-offset
drag yourdiv
to the right according to the consequent number incol-md-offset-x
– Mateus Aziani