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 .
************
- <style>
- html, body {
- height : 100%;
- }
- #map-page {
- height : 100%;
- }
- #map-page .ui-header {
- height : 40px;
- }
- #map-page .ui-content {
- position : absolute;
- top : 0;
- right : 0;
- bottom : 0;
- left : 0;
- width : 100%;
- height : 100%;
-
- }
- #map-page .ui-footer {
- position : absolute;
- bottom : 0;
- left : 0;
- width : 100%;
- height : 30px;
-
- }
- .ork_image_div img{
- width:100%;
- height:auto;
- }
- </style>
- <!DOCTYPE HTML>
- <html>
- <head>
- <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" />
- <link rel="stylesheet" href="jquery.mobile.structure-1.2.0.min.css" />
- <link rel="stylesheet" href="jquery.mobile-1.2.0.min.css" />
- <script src="jquery-1.8.1.min.js"></script>
- <script src="jquery.mobile-1.2.0.min.js"></script>
- </head>
- <body >
- <div data-role="page" id="map-page">
- <div data-role="header">
- <h1>Header</h1>
- </div>
-
- <div id = "content" style="border:1px solid #00ff00;">
-
-
- <div class="ui-grid-b" >
- <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>
- <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>
- <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>
- </div>
-
- <div class="ui-grid-b">
- <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>
- <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>
- <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>
- </div>
-
- <div class="ui-grid-b">
- <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>
- <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>
- <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>
- </div>
-
-
-
- </div>
-
-
-
- <div data-role="footer">
- <p>Footer</p>
- </div>
- </div>
- </body>
- </html>