Use shims to adjust the door within the frame. On the hinge side, make sure the door is plumb and level before securing it. On the latch side, adjust the shims to achieve an even gap between the door and frame. Once satisfied, secure the door with screws.