Deimis Deimis - 3 months ago 8
CSS Question

How to change first column in bootstrap the distance from left?

I'm using Bootstrap and I want to change first column the distance from left. This is illustrated in this picture:

enter image description here

My code:

<div class="container">
<div class="row">
<div class="col-sm-1">
<div class="panel panel-default">
<div class="panel-body">A Basic Panel</div>
</div>
</div>
<div class="col-sm-8">.col-sm-7</div>
<div class="col-sm-1">.col-sm-1</div>
</div>
</div>


I try with margin-left, padding-left, but I don't found where it's need change.

Answer

Change

<div class="container">

to

<div class="container-fluid">

Fiddle here: https://jsfiddle.net/DTcHh/23360/

Comments