I am trying to set the "bottom" property of a div on my mobile site. I am using jquery because the people who developed the app which generates this div loved to use inline styles with !important tags. My main goal here is to set the bottom to 50px once the div is loaded ( I am waiting 2 seconds to test )
It seems to work on the responsive chrome dev tools, but not on my iphone. Any suggestions?
script below :
$(document).ready(function() {
//move mobile container
setTimeout(
function()
{
var mq = window.matchMedia( "(max-width: 660px)" );
if (mq.matches) {
$('#mobile-container').css('bottom','50px');
}
}, 2000);
});