I facing a problem is my css is have a some bug when firefox is lower than 2.0. I would like to detect the browser to fix my css bug.
This is my code:
$(
I just bumped into this problem myself. $.browser.version actually detects the version of the rendering engine, and not the version of the browser (despite what its name implies), so if you want to detect Firefox 4 and later, you should use
$.browser.mozilla && $.browser.version > '2'
Because Firefox 4 uses Gecko 2.0 as the rendering engine. It's rather confusing, I know :)