Placing a bootstrap badge over the lower right corner of a <li> element of an <ul> list of unknown elements?
<p>My conundrum is this: I'm trying to do absolute positioning relative to the regular flow of the list since I don't know how many there will be at any given time but my badge is taking the absolute position of the <code>&lt;ul&gt;</code> element instead.  </p>

<p>My 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>.buttons {
  -webkit-transform: translate(50%, -50%);
  position: absolute;
  top: 148px;
  text-align: center;
  right: 50%;
  list-style: none;
  margin: auto;
  padding: 0;
}
.buttons li {
  display: inline;
  font-size: 36px;
  margin: 5px;
}
.count {
  z-index: 1;
  position: absolute;
  top: 2px;
  right: 18px;
  background-color: #d9534f;
}</code></pre>
<pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" integrity="sha384-1q8mTJOASx8j1Au+a5WDVnPi2lkFfwwEAa8hDDdjZlpLegxhjVME1fgjWPGmkzs7" crossorigin="anonymous"&gt;
&lt;ul class="buttons"&gt;
  &lt;li&gt;&lt;span class="glyphicon glyphicon-edit"&gt;&lt;/span&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;span class="glyphicon glyphicon-pencil"&gt;&lt;/span&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;span class="glyphicon glyphicon-list"&gt;&lt;/span&gt;&lt;span class="badge count"&gt;3&lt;/span&gt;
  &lt;/li&gt;
  &lt;li&gt;&lt;span class="glyphicon glyphicon-user"&gt;&lt;/span&gt;
  &lt;/li&gt;
&lt;/ul&gt;</code></pre>
</div>
</div>
</p>

<p>Here's a jsfiddle link: <a href="https://jsfiddle.net/ag1vgnqt/2/" rel="nofollow">https://jsfiddle.net/ag1vgnqt/2/</a></p>