title: Unwanted image resizing
body: <p>I need to display thumbnails <code>30x30px + border + padding</code></p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="false" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-css lang-css prettyprint-override"><code>.wihi3030 {
    width: 30px;
    height: 30px;
  }
  
  a.image30 img {
    border: 1px solid #CCC;
    background-color: #fff;
    padding: 3px;
  }</code></pre>
  <pre class="snippet-code-html lang-html prettyprint-override"><code>&lt;a class="image30" href="#"&gt;&lt;img class="wihi3030" src="#" alt="" /&gt;&lt;/a&gt;</code></pre>
  </div>
  </div>
  </p>
  
  <p>it works OK:</p>
  
  <p><a href="https://i.stack.imgur.com/YC6hb.jpg" rel="nofollow noreferrer">correct image</a></p>
  
  <p>30px + border + padding = 38px.</p>
  
  <p>Yesterday I downloaded and installed a lightbox called Venobox - </p>
  
  <p>For some reason the same image when I open it in a lightbox, reduces to <code>22x22px</code><br>
  Together with border and padding it has size <code>30x30px</code></p>
  
  <p><a href="https://i.stack.imgur.com/qF333.jpg" rel="nofollow noreferrer">incorrect reduced size</a></p>
  
  <p>How can I prevent resizing of the image?<br>
  I want them to stay <code>30x30px + border + padding</code> and not <code>30px</code> together with border and padding.  </p>
  
  <p>I have checked CSS files but can not understand what cause image resizing.  </p>