Another hint is to use a long screw in one of the holes in the top most hinge long enough to penetrate the stud.
Repair damaged door frame hinge.
Then you can drive the screws into the screw holes on the hinge to secure it.
After time the weight of the door will pull on the hinge and cause the door not to hang straight.
Inspect the door hinge and look for where it is loose or hangs off of the door or doorjamb.
You may need to re chisel a pock in the frame so the hinge sits flush.
To repair a split door frame remove the door strip and molding starting at the bottom of the frame and working your way up.
The screw holes where the hinge or hinges are loose need to be repaired.
To learn how to use a shim to repair a loose wood screw hole for a hinge keep reading.
A simple method of using golf tees to fix holes that have been stripped out and are to big so the screws will not tighten up the hinge to the door or jamb.