hi I want a grid image not go out of screen mean 10-20 grid

hi I want a grid image not go out of screen mean 10-20 grid

Target ---> Each grid contain an image and not going out of screen.
but here i post a program that an image large size but it's not fit between header and footer .
mean content grid must between header and footer , no gap between header and footer .

************

  1. <style>
  2. html, body {
  3.     height : 100%;
  4. }
  5. #map-page {
  6.     height : 100%;
  7. }
  8. #map-page .ui-header {
  9.     height : 40px;
  10. }
  11. #map-page .ui-content {
  12.     position : absolute;
  13.     top      : 0;
  14.     right    : 0;
  15.     bottom   : 0;
  16.     left     : 0;
  17.     width    : 100%;
  18.     height   : 100%;
  19.    
  20. }
  21. #map-page .ui-footer {
  22.     position : absolute;
  23.     bottom   : 0;
  24.     left     : 0;
  25.     width    : 100%;
  26.     height   : 30px;
  27.    
  28. }
  29. .ork_image_div img{
  30. width:100%;
  31. height:auto;
  32. }
  33. </style>
  34. <!DOCTYPE HTML>

  35. <html>
  36.     <head>
  37.      <meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" />
  38.         <link rel="stylesheet" href="jquery.mobile.structure-1.2.0.min.css" />
  39.         <link rel="stylesheet" href="jquery.mobile-1.2.0.min.css" />
  40.         <script src="jquery-1.8.1.min.js"></script>
  41.         <script src="jquery.mobile-1.2.0.min.js"></script>

  42.     </head>  
  43.     <body >  
  44.  <div data-role="page" id="map-page">
  45.     <div data-role="header">
  46.         <h1>Header</h1>
  47.     </div>
  48.    
  49. <div id = "content" style="border:1px solid #00ff00;">     
  50.  
  51. <div class="ui-grid-b" >
  52. <div class="ui-block-a" style="text-align:center;border:1px solid #ff0000;">  <img alt="" src="images/city.jpg" style="width: 100%; height: auto"  /></div>
  53. <div class="ui-block-b" style="text-align:center;border:1px solid #ff0000;">  <img alt="" src="images/city.jpg"  style="width: 100%; height: auto" /></div>
  54. <div class="ui-block-c" style="text-align:center;border:1px solid #ff0000;">  <img alt="" src="images/city.jpg" style="width: 100%; height: auto" /></div>
  55. </div>
  56. <div class="ui-grid-b">
  57. <div class="ui-block-a" style="text-align:center;border:1px solid #ff0000;">  <img alt="" src="images/city.jpg" style="width: 100%; height: auto"  /></div>
  58. <div class="ui-block-b" style="text-align:center;border:1px solid #ff0000;">  <img alt="" src="images/city.jpg" style="width: 100%; height: auto" /></div>
  59. <div class="ui-block-c" style="text-align:center;border:1px solid #ff0000;">  <img alt="" src="images/city.jpg"  style="width: 100%; height: auto" /></div>
  60. </div>
  61. <div class="ui-grid-b">
  62. <div class="ui-block-a" style="text-align:center;border:1px solid #ff0000;">  <img alt="" src="images/city.jpg" style="width: 100%; height: auto" /></div>
  63. <div class="ui-block-b" style="text-align:center;border:1px solid #ff0000;">  <img alt="" src="images/city.jpg"  style="width: 100%; height: auto" /></div>
  64. <div class="ui-block-c" style="text-align:center;border:1px solid #ff0000;">  <img alt="" src="images/city.jpg"  style="width: 100%; height: auto" /></div>
  65. </div>
  66.     
  67.     </div>
  68.     
  69.     
  70.     
  71.     <div data-role="footer">
  72.         <p>Footer</p>
  73.     </div>
  74. </div>


  75. </body>
  76. </html>