title: How to add a border radius to a box shadow that lies within the width range of the element?
body: <p>I want to add a box shadow to a button with a border radius but the shadow itself should lie below the button and within its width range.</p>
  
  <p>I was able to get the rounded border shadow but when trying to position it within the elements width range the border radius effect was lost and instead I got only the shadow without the border radius.</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>.but1 {
    width: 200px;
    height: 100px;
    border: none;
    background-color: yellow;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    -webkit-box-shadow: rgba(0, 0, 0, 0.8) 0 25px 0px -10px;
    -moz-box-shadow: rgba(0, 0, 0, 0.8) 0 25px 0px -10px;
    box-shadow: rgba(0, 0, 0, 0.8) 0 25px 0px -10px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;button class="but1"&gt;
    Click me!
  &lt;/button&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>The example of what I got till now is  linked below.</p>
  
  <p><a href="https://jsfiddle.net/satilog/kbq2snum/5/" rel="nofollow noreferrer">Sample output in jsfiddle</a>   </p>