This is html code I wrote using jQuery mobile
<div data-role="page" id="map-page">
<div data-role="header" data-theme="a" data-position="fixed"
data-fullscreen="true" data-tap-toggle="false">
<h1>header</h1>
</div>
<div data-role="main" class="ui-content" id="map_canvas">
<div id="map"></div>
</div>
<div data-role="footer" data-theme="a" data-position="fixed"
data-fullscreen="true" data-tap-toggle="false">
<h1>footer</h1>
</div>
id=map is google map. and.. this is CSS
<style>
#map-page{
width: 100%;
height: 100%;
padding: 0;
}
#map-canvas{
position: relative;
overflow: hidden;
min-height:100%;
height:auto !important;
}
#map{
position: absolute;
top: 0px;
left: 0px;
height: 100%;
width: 100%;
}
</style>
In this situation google map covers all area under the header and footer. I can see top and bottom of map through header&footer cloudy. What I want is that map just wrap the rest between header and footer. How can I do that?
Thank you.