Bootstrap table first element shifted
<p>I'm trying to make a table with bootstrap in my Rails web app, but the first element of my line is always far away from the others. </p>

<p><a href="https://i.stack.imgur.com/YYzIV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/YYzIV.png" alt="enter image description here"></a></p>

<p>I checked my CSS file and when I clear these lines (and just that) :</p>

<pre><code>@import "bootstrap-sprockets";
@import "bootstrap";
</code></pre>

<p>... the table is docked to the right. So obviously I guess that Bootstrap tables aren't working in my app, and I don't understand why. I took tables from internet and I have the same problem.</p>

<p>Here is my table in the html.erb file :</p>

<pre><code>&lt;table class="table"&gt;
      &lt;thead&gt;
        &lt;tr&gt;
          &lt;th class="label"&gt;Tâche&lt;/th&gt;
          &lt;th class="label"&gt;Responsable&lt;/th&gt;
          &lt;th class="label"&gt;Durée&lt;/th&gt;
          &lt;th class="label"&gt;Date de début&lt;/th&gt;
          &lt;th class="label"&gt;Date de fin&lt;/th&gt;
          &lt;th class="label"&gt;Date de début standard&lt;/th&gt;
          &lt;th class="label"&gt;Date de fin standard&lt;/th&gt;
          &lt;th class="label"&gt;Retard&lt;/th&gt;
          &lt;th class="label"&gt;Congés&lt;/th&gt;
        &lt;/tr&gt;
      &lt;/thead&gt;
      &lt;tbody&gt;
        &lt;% @projectTasks.each do |task| %&gt;
          &lt;tr&gt;
            &lt;td class="task"&gt;&lt;%= task[0] %&gt;&lt;/td&gt;
            &lt;td class="task"&gt;&lt;%= task[1] %&gt;&lt;/td&gt;
            &lt;td class="task"&gt;&lt;%= task[3] %&gt; days&lt;/td&gt;
            &lt;td class="task"&gt;&lt;%= task[4] %&gt;&lt;/td&gt;
            &lt;td class="task"&gt;&lt;%= task[5] %&gt;&lt;/td&gt;
            &lt;td class="task"&gt;&lt;%= task[6] %&gt;&lt;/td&gt;
            &lt;td class="task"&gt;&lt;%= task[7] %&gt;&lt;/td&gt;
            &lt;td class="task"&gt;&lt;%= task[8] %&gt; days&lt;/td&gt;
            &lt;td class="task"&gt;&lt;%= task[9] %&gt; days&lt;/td&gt;
          &lt;/tr&gt;
        &lt;% end %&gt;
      &lt;/tbody&gt;
    &lt;/table&gt;
</code></pre>

<p>... but I think that the problem is not here, like I said.</p>

<p>Thanks for your answers.</p>