title: Positioning Offset div / Images
body: <p>I would like to achieve this result (see this example image).</p>
  
  <p><a href="https://i.stack.imgur.com/j9Dzv.jpg" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/j9Dzv.jpg" alt="enter image description here"></a></p>
  
  <p>First, I’ve tried to create partial borders with CSS (using <code>div:after</code>).  Problem : I have several images with different formats and it is not working properly. So, I’ve tried with a background div with <code>position: relative</code> and an image in <code>position: absolute</code>.</p>
  
  <p>Its works but it’s not easy to handle in responsive mode. I need to set a with and a height to the div which contains the image and sometime the container is too big.</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>.container-image-border {
    margin-top: 40px;
    background-color: #fd9220;
    position: relative;
    width: 150px;
    height: 250px;
  }
  
  .container-image-border img {
    position: absolute;
    top: -30px;
    right: -30px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;div class="container-image-border"&gt;
  
    &lt;img alt="example" src="https://via.placeholder.com/150x250"&gt;
  
  &lt;/div&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>Is there an other way to achieve this ?</p>