title: Fixed width of span?
body: <p>I'm using Boostrap css to 'pull-right' some inline buttons in my list items. I want to fix the buttons there, so I am setting the width of the text-container to prevent it shunting the buttons. Only, it's not working.</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>#mybox {
    width: 400px;
  }
  
  .myli {
    background-color: yellow;
  }
  
  .mytext {
    width: 250px !important;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet" /&gt;
  &lt;div id="mybox"&gt;
  
  
    &lt;ol&gt;
      &lt;li class="myli list-group-item clear-fix"&gt;&lt;span class="mytext"&gt;Some text&lt;/span&gt;&lt;span class="pull-right"&gt;&lt;button&gt;
      Button
      &lt;/button&gt;&lt;/span&gt;&lt;/li&gt;
      &lt;li class="myli list-group-item clear-fix"&gt;&lt;span class="mytext"&gt;Some text&lt;/span&gt;&lt;span class="pull-right"&gt;&lt;button&gt;
      Button
      &lt;/button&gt;&lt;/span&gt;&lt;/li&gt;
      &lt;li class="myli list-group-item clear-fix"&gt;&lt;span class="mytext"&gt;Some very long text which interferes with the button on the following row oiwiowh wdoihsoih osdih ohsdih soidhoishisdhoidh soidh odih&lt;/span&gt;&lt;span class="pull-right"&gt;&lt;button&gt;
      Button
      &lt;/button&gt;&lt;/span&gt;&lt;/li&gt;
      &lt;li class="myli list-group-item clear-fix"&gt;&lt;span class="mytext"&gt;Some text&lt;/span&gt;&lt;span class="pull-right"&gt;&lt;button&gt;
      Button
      &lt;/button&gt;&lt;/span&gt;&lt;/li&gt;
    &lt;/ol&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Here's a fiddle which shows the buttons on the third row shunted down, despite me restricting the width of the text span before it:</p>
  
  <p><a href="https://jsfiddle.net/3q7ha8fo/1/" rel="nofollow noreferrer">https://jsfiddle.net/3q7ha8fo/1/</a></p>