27May/1037
Quick jQuery hack to fix position:fixed toolbars in iPhone/iPad/iPod Touch
This is just a quick fix if your postion:fixed elements end up in weird places when your site is viewed on the iPhone, iPad, or iPod Touch.
Say you have a div with an id of "#footer" that you want to stay at the bottom of the page. If you set it's position to "fixed" and set the bottom to "0px". When viewed on an iPad, iPhone or iPod Touch, the footer may end up in the middle of your content if you have a long page.
//stick the footer at the bottom of the page if we're on an iPad/iPhone due to viewport/page bugs in mobile webkit
if(navigator.platform == 'iPad' || navigator.platform == 'iPhone' || navigator.platform == 'iPod')
{
$("#footer").css("position", "static");
};



Pingback: Tweets that mention Quick jQuery hack to fix position:fixed toolbars in iPhone/iPad/iPod Touch | Lazycoder -- Topsy.com
Pingback: Quick jQuery hack to fix position:fixed toolbars in iPhone/iPad … | Yoobz.com
Pingback: Dew Drop – May 28, 2010 | Alvin Ashcraft's Morning Dew
Pingback: www.Richard-Weaving.com » Research and Markets: Egypt Telecom Country Profile – 2010 – At the End of 2009, Egypt Had 10.31 Million Fixed …
Pingback: Quick jQuery hack to fix position:fixed toolbars in iPhone/iPad … » KHMER855.COM
Pingback: How to add a watermark to a foto or picture » Blog Archive » Absolute Vs Relative positioning in CSS
Pingback: Diseño web para iPad, Consideraciones en el CSS « Jon Garza
Pingback: Quick jQuery hack to fix position:fixed toolbars in iPhone/iPad/iPod Touch | Lazycoder | IPhone