title: box-shadow on top of children
body: <p>How do I get an inset CSS3 <code>box-shadow</code> to render on top of its children elements? </p>
  
  <p>Problem: </p>
  
  <p><a href="https://i.stack.imgur.com/s2WDP.png" rel="noreferrer"><img src="https://i.stack.imgur.com/s2WDP.png" alt="enter image description here"></a></p>
  
  <p>HTML:</p>
  
  <pre><code>&lt;div id="chatroom"&gt;
      &lt;div class="chatmessage"&gt;&lt;b&gt;User 1:&lt;/b&gt;Test&lt;/div&gt;
      &lt;div class="chatmessage"&gt;&lt;b&gt;User 2:&lt;/b&gt;Test&lt;/div&gt;
      &lt;div class="chatmessage"&gt;&lt;b&gt;User 1:&lt;/b&gt;Test&lt;/div&gt;
      &lt;div class="chatmessage"&gt;&lt;b&gt;User 2:&lt;/b&gt;Test&lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>CSS:</p>
  
  <pre><code>#chatroom{
      border: 1px solid #CCC;
      height: 135px;
      font-size: 0.75em;
      line-height: 1.2em;
      overflow: auto;
      -moz-box-shadow: inset 0 0px 4px rgba(0,0,0,.55);
      -webkit-box-shadow: inset 0 0px 4px rgba(0,0,0,.55);
  }
  .chatmessage{
      padding: 4px 2px;
  }
  .chatmessage b{
      margin-right: 2px;
  }
  .chatmessage:nth-child(2n) {
      background: #EEE;
  }
  </code></pre>