title: Using modal image in <div style="background-image: url()">
body: <p>I am trying to use modal image in my responsive website.
  I have my images in divs as background-image.
  Like;</p>
  
  <pre><code>&lt;div class="someClass" style="background-image: url(image.jpg)"&gt;&lt;/div&gt;
  </code></pre>
  
  <p>I have checked w3schools.com: <a href="http://www.w3schools.com/howto/howto_css_modal_images.asp" rel="nofollow noreferrer">How TO - Modal Images</a></p>
  
  <p>However, this method is useful when I use <code>&lt;img&gt;</code> tag. How can I use Modal Images where my images are implemented in divs?</p>
  
  <p>I need to use div as my website won't work appropriately without it.</p>
  
  <p>Thanks. </p>