title: Using CSS:: before to add a small icon before list links
body: <p>The question pretty much explains it but I have list items I want to put a simple diamond icon before them but when I try to use <code>::before</code> it ends up putting the image above instead of the same line and I can't really seem to find out how to put it right before the list icon on the same line.</p>
  <p>Like I said the image is just a small diamond, its 5px by 5px</p>
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.list-menu::before {
    content: url('../images/menu-icons/image-before.png');
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="sb-slidebar sb-left sb-style-push"&gt;
    &lt;nav&gt;
      &lt;ul&gt;
        &lt;li class="list-menu"&gt;&lt;a href="#"&gt;Home&lt;/a&gt;&lt;/li&gt;
      &lt;/ul&gt;
    &lt;/nav&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>