fixed using with elements that have padding and border. fixed work jquery (not mobile). corrected syntax