title: CSS Position of floating element fixed
body: <p>the blue button (float: right) will not be displayed properly in some cases (depending on resolution and text length).</p>
  <p>I'd like to have the blue button at the right hand corner at all times and a line break for the text (if needed).</p>
  <p><a href="https://i.stack.imgur.com/IPnN6.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/IPnN6.jpg" alt="enter image description here" /></a></p>
  <p>Any suggestions how to alter the css?</p>
  <p>I use bootstrap 3 and this custom code:</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>.pull-right-not-xs,
  .pull-right-not-sm,
  .pull-right-not-md,
  .pull-right-not-lg {
    float: right;
  }
  
  .pull-left-not-xs,
  .pull-left-not-sm,
  .pull-left-not-md,
  .pull-left-not-lg {
    float: left;
  }
  
  @media (max-width: 767px) {
    .pull-right-not-xs,
    .pull-left-not-xs {
      float: none;
    }
    .pull-right-xs {
      float: right;
    }
    .pull-left-xs {
      float: left;
    }
  }
  
  @media (min-width: 768px) and (max-width: 991px) {
    .pull-right-not-sm,
    .pull-left-not-sm {
      float: none;
    }
    .pull-right-sm {
      float: right;
      margin-right: 6.3;
    }
    .pull-left-sm {
      float: left;
    }
  }
  
  @media (min-width: 992px) and (max-width: 1199px) {
    .pull-right-not-md,
    .pull-left-not-md {
      float: none;
    }
    .pull-right-md {
      float: right;
    }
    .pull-left-md {
      float: left;
    }
  }
  
  @media (min-width: 1200px) {
    .pull-right-not-lg,
    .pull-left-not-lg {
      float: none;
    }
    .pull-right-lg {
      float: right;
    }
    .pull-left-lg {
      float: left;
    }
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.min.js"&gt;&lt;/script&gt;
  &lt;script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"&gt;&lt;/script&gt;
  &lt;link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" rel="stylesheet"/&gt;
  &lt;div class="col-sm-6 col-xs-12 item"&gt;
    &lt;div class="panel panel-default"&gt;
      &lt;div class="panel-heading"&gt;
        &lt;h3 class="panel-title"&gt;Veranstaltungen &lt;span class="label label-default pull-right"&gt;2&lt;/span&gt;&lt;/h3&gt;
      &lt;/div&gt;
      &lt;div class="panel-body"&gt;
        &lt;div class="list-group"&gt;
  
  
  
  
  
          &lt;a href="/kaimmo/index.jsp?event=19&amp;do=edit" class="list-group-item list-group-item-warning"&gt;
                                      25.06.2020 - Betongoldworkshop (BGW) - Zoom-Webinar Deutschland
                                      &lt;span class="pull-right-sm pull-right-md pull-right-lg"&gt;
                                          &lt;span style="vertical-align: top; display: inline-block;" class="label label-primary"&gt;Korupp, Frederic&lt;/span&gt;
                                      &lt;/span&gt; 
                                  &lt;/a&gt;
  
  
          &lt;a href="/kaimmo/index.jsp?event=17&amp;do=edit" class="list-group-item list-group-item-warning"&gt;
                                      11.06.2020 - Betongoldabend (BGA) - Zoom-Webinar Deutschland
                                      &lt;span class=""&gt;
                                          &lt;span class="label label-primary"&gt;Ganser, Robin&lt;/span&gt;
                                      &lt;/span&gt; 
                                  &lt;/a&gt;
  
  
        &lt;/div&gt;
      &lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>