title: Getting the button into the top right corner inside the div box
body: <p>I can't figure out how to get the [X] button into the top right corner of my custom css box.</p>
  
  <p>Here's the result so far:</p>
  
  <p><img src="https://i.stack.imgur.com/7Fs4c.png" alt="enter image description here"></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>#wrapper {
    height: 100px;
    width: 500px;
  }
  
  #wrapper {
    bottom: 50%;
    right: 50%;
    position: absolute;
  }
  
  #container {
    background: #FFF;
    left: 50%;
    padding: 10px;
    top: 50%;
    margin: 0;
    padding: 0;
    height: 100%;
    border: 1px solid rgb(128, 128, 128);
    height: 100%;
    position: relative;
  }
  
  #inner1 {
    height: 100%;
    border: 1px solid blue;
  }
  
  #inner2 {
    height: 100%;
    border: 1px solid green;
  }
  
  #titlebar {
    cursor: pointer;
    height: 23px;
    width: 100%;
    filter: progid:DXImageTransform.Microsoft.gradient(startColorStr=#0A246A, endColorStr=#A6CAF0, GradientType=1);
    color: white;
    font: 13px arial, helvetica;
  }
  
  #button {
    line-height: 12px;
    width: 18px;
    font-size: 8pt;
    font-family: tahoma;
    margin-top: 1px;
    margin-right: 2px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="wrapper"&gt;
    &lt;div id="container"&gt;
      &lt;div id="titlebar"&gt;Information Box&lt;/div&gt;
      &lt;div&gt;&lt;input id="button" type="button" value="X"&gt;&lt;/div&gt;
    &lt;/div&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>