title: How can I prevent the element behind a semi-transparent button from showing?
body: <p>Consider the following code snippet,</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>.border {
     border: 4px solid rgb(195, 0, 38);
  }
  
  .info-card {
    padding-bottom: 20px;
  }
  
  button {
    background-color: rgb(195, 0, 38);
    opacity: 0.5;
    border-radius: 10px;
    color: #fff;
    padding: 5px;
  }
  
  .order-button {
    margin-top: -1.5rem;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="border"&gt;
  &lt;div class="info-card"&gt;
    &lt;h1&gt; Info Section &lt;/h1&gt;
  &lt;/div&gt;
  &lt;/div&gt;
  &lt;div class="order-button"&gt;
     &lt;button&gt;
        Order Now
     &lt;/button&gt;
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  <p><strong>Expected Result:</strong></p>
  <p>Here the disabled button needs to take higher order than the border as like the below image.</p>
  <p><a href="https://i.stack.imgur.com/hFxbP.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/hFxbP.png" alt="enter image description here" /></a></p>
  <p>Kindly please don't change/add new color in css as these colors are dynamic from backend and hence unable to hard code some color for button to make it look above the border.</p>
  <p>How to make the z-index of button to take higher than the border?</p>