Is there a general way to identify mobile browsers other than cross checking the users user agent string with a large array of known user agents? The reason i am asking is that i don't really need anything too extensive or computationally intensive, just the identification if the browser is a mobile one.
I just recently found out that mobile browsers are a bit buggy with position:fixed content (why god why!? thought that was an issue of the past with ie6...). So i'd rather hide the fixed position div than have it hang around the middle of the page for mobile browsers.
If you're wondering, the fixed position div is declared at the bottom of the page, the logic being that if the browser didn't support position:fixed; then it would simply display it at the bottom. But i was surfing the site on an android phone and found that the browser attempts to position it fixed, but fails. It tries to jump into place as you scroll down, but eventually it just reaches a point on the page and stays there, not moving at all.