title: How to fill an inline-block div with a solid color?
body: <p>Consider the code below. My intent was to have a green bar, <code>30px</code> wide, between <code>hello</code> and <code>world</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>.bar {
    display: inline-block;
    background-color: green;
    width: 30px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div&gt;
    hello &lt;div class="bar"&gt;&lt;/div&gt; world
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The block is indeed there, but not filled in. What is missing?</p>