title: Triangle overlay in right corner css
body: <p>I want to  create an overlay with css over one image like this:
  <a href="https://i.stack.imgur.com/JgG2C.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JgG2C.png" alt="enter image description here"></a></p>
  
  <p>but  I only do a square overlay like this:
  <a href="https://i.stack.imgur.com/nfPUH.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/nfPUH.png" alt="enter image description here"></a></p>
  
  <p>how I can make the first shape with css ??</p>
  
  <p>here is my code:</p>
  
  <pre><code>.card-img-overlay {
  position: absolute;
  top: 0px;
  right: 0px;
  bottom: 0;
  left: 150px;
  padding: 1.25rem;
  }
  </code></pre>
  
  <p>thank you for your answers :)</p>