title: image resize to fit screen on mobile device using jquery mobile
body: <p>I want to know if we can resize an image to fit the screen. Right now the image is suitable for iphone 5s, but it does not resize to another device or tablet to fit the screen.</p>
  
  <p>I want to know if anyone has idea of how to resize to fit the screen.</p>
  
  <p>This is my code.</p>
  
  <pre><code>&lt;img alt="" src="images/main1.jpg" style="width:100%;height:auto;position:absolute;z-index:500"&gt;&lt;/img&gt;
  </code></pre>