title: Remove border only from corners (CSS)
body: <p>I want to remove the corners of borders like in 
   picture.
  <a href="https://i.stack.imgur.com/pLpTM.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/pLpTM.jpg" alt="expected result"></a></p>
  
  <p>By now I have tried ::before and ::after pseudo elements but I was only able to remove two of the corners.</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>    .rounded-corner-div{
      min-height: 100px;
      padding: 10px 20px;
      border: 1px #000 solid;
      position: relative;
      }
  
      .rounded-corner-div::after,
      .rounded-corner-div::before {
        background-color: white;
        content: "";
        display: block;
        height: 10px;
        position: absolute;
        width: 10px;
      }
  
      .rounded-corner-div::after {
        bottom: -1px;
        right: -1px;
      }
      .rounded-corner-div::before {
        top: -1px;
        left: -1px;
      }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="rounded-corner-div"&gt;&lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>