title: HTML/CSS close button overlapping right/upper corner
body: <p>Looking to place a button overlying, and partially outside parent div such as in this picture. MY attempts have it within the parent DIV. The picture below is what I am after.</p>
  
  <p><a href="https://i.stack.imgur.com/0g4EA.png" rel="noreferrer"><img src="https://i.stack.imgur.com/0g4EA.png" alt="enter image description here"></a></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>#container {
    width: 80%;
    border-radius: 25px;
    border: 2px solid Black;
    padding: 15px 15px 15px 15px;
    margin: 20px 20px 20px 20px;
    background: #A4D3EE;
    overflow: auto;
    box-shadow: 5px 5px 2px #888888;
    position: relative;
  }
  
  #x {
      position: relative;
      float: right;
      background: red;
   color: white;
      top: -10px;
      right: -10px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div id="container"&gt;
          &lt;button id = "x"&gt;
              X
          &lt;/button&gt;
      Text Text Text
      Text Text Text
      Text Text Text
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>