I working in Phone Gap.I have fixed a footer,this works for few devices and does not work for few devices.
HTML CODE for FOOTER
<div id="footer" style="background-image:url(img/bottom_bar.png);" class="footer">
<div id="footer_text" class="footer_text">footer</div>
<div id="info" class="info noSelect"><img src="img/info.png"/></div>
</div>
CSS for FOOTER
.footer
{
width:100%; position:fixed; bottom:0; font-size:11px; color:#FFFFFF; text-align:center; height:30px;
}
.footer_text
{
text-indent:1%; float:left; text-align:center; width:75%; margin-top:2%;
}
For few devices it sits at the bottom of the screen...inspite of the content overflowing and for few devices it moves along with the content.
EDIT:
As per Filippos Karapetis Sir's advice I have tried implementing iscroll4
I have used this javascript from here
and initialized the scroll
document.addEventListener("deviceready", onDeviceReady, false);
function scroll()
{
myScroll = new IScroll('.wrapper', { mouseWheel:true });
}
-----
-----
function onDeviceReady()
{
scroll();
----
----
Footer CSS
.footer
{
width:100%; position:fixed; bottom:0; font-size:11px; color:#FFFFFF; text-align:center; height:30px;
}
.footer_text
{
text-indent:1%; float:left; text-align:center; width:75%; margin-top:2%;
}
The problem is it scrolls only once